Device Management Notification message support #2758
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the support for devices to provide messages with the notifications sent when performing a Device Package Management operations.
All the messages sent are then collected at the end of the execution to build a simple log file which is bound to the Device Management Operation.
This allows easy debug of situation where the device does not work as expected.
Related Issue
None
Description of the solution adopted
Added new fields and mappings to store the Device Management Notification messages sent from the device.
After the device sends a Device Management Notification with status
COMPLETED
orFAILED
all notifications are fetched and their messages are put as a log into the Device Management Operation sorted by SentOn, and then the Device Management Notifications are deleted.From the UI there is a new button that shows the log (see screenshot below).
Screenshots
Any side note on the changes made
Small improvements on class involved in the changes