Implement fallout strategy failed individual message #59
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.
Astarte Device SDK does not currently implement a fallout strategy for individual datastream messages.
In the 'Class AstarteMqttV1Transport,' the method 'SendIndividualValue' handles the 'MqttCommunicationException' by calling the method 'HandleDatastreamFailedPublish' for the stored message.
When the device loses connection with Astarte, failed individual datastream messages will be stored. The method of storage can be determined from a mapping of the interface field 'Retention.' Retention types include 'volatile,' which is stored in cache memory, and 'stored,' which is saved in the local database. The default retention value is 'discarded,' and the 'discard' message retention type does not save.
Testing:
Finally, failed messages will be sent to Astarte.