Enabled TOS 2 for MQTT to ensure higher quality #158
Merged
+4
−5
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.
Description
Pull Request Description
Title: Enabled TOS 2 for MQTT to Ensure Higher Quality
Motivation and Improvement
This pull request focuses on enhancing the quality and reliability of our MQTT communication by enabling Quality of Service (QoS) level 2. QoS 2 ensures that messages are delivered exactly once, which is critical for applications where duplicate messages can cause issues or where message loss is unacceptable.
Changes Made
Updated MQTT Publish QoS Level:
Example changes:
Files Modified:
machinery/src/cloud/Cloud.go
machinery/src/computervision/main.go
machinery/src/routers/mqtt/main.go
Benefits
Improved Reliability:
Enhanced Quality:
By enabling QoS 2 for MQTT, we significantly improve the communication reliability and quality of our system, ensuring that messages are delivered exactly once, which is crucial for maintaining data integrity and system performance.