You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow constructing messages for Job status updates with additional details like number of downloaded blocks or additional string.
Considering a download of 100 blocks in a OTA file, it would be beneficial as a user to know the progress of the job. In older OTA agent, there was a mechanism to construct a message with number of downloaded blocks and total blocks expected in the file.
An example of such a message is:
{"status":"IN_PROGRESS","statusDetails":{"receive":"12/100"}}
which shows that 12 blocks are received among the 100 blocks.
This allows to track the OTA progress on the job execution when a OTA is in progress. Without regular updates, the job creater has no idea what is happening with the blocks and how far the download has been done.
The text was updated successfully, but these errors were encountered:
This request seems like the superset of your other request. This would be a perfect time for function overloading but unfortunately C doesn't support that. The next closest option is a variadic functions but this isn't a great solution either as the function signature would get ugly as more and more key-value pairs are added.
For both simplicity and ease of development, I'll put together a PR which takes in a JSON string for the StatusDetails field. Then as the user you can add whatever you want, as long as its valid JSON.
Allow constructing messages for Job status updates with additional details like number of downloaded blocks or additional string.
Considering a download of 100 blocks in a OTA file, it would be beneficial as a user to know the progress of the job. In older OTA agent, there was a mechanism to construct a message with number of downloaded blocks and total blocks expected in the file.
An example of such a message is:
{"status":"IN_PROGRESS","statusDetails":{"receive":"12/100"}}
which shows that 12 blocks are received among the 100 blocks.
This allows to track the OTA progress on the job execution when a OTA is in progress. Without regular updates, the job creater has no idea what is happening with the blocks and how far the download has been done.
The text was updated successfully, but these errors were encountered: