Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version MQTTnet library #69

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

osmanhadzic
Copy link
Collaborator

Update version MQTTnet library from 3.1.2 to 4.1.4.563. Refactor strategy for fallback messages.

Updating the MQTTnet library provides benefits such as bug fixes, security patches, performance improvements, new features, compatibility with the latest .NET versions, and better community support.

Implement breaking changes:

  • Rename namespaces
  • Implement an enum for Qos
  • Replace handler with events (messages receive and disconnect)

Handling exception to resolve deadlock in threads. With add cancellation timeout token in class AstarteMqttTransport method Connect() and handling AggregateException in class AstarteDevice method EventualyReconnect().

Update MQTTnet library from 3.1.2 to version
4.1.4.563. Resolving braking changes with
namespaces.
Replace `UseApplicationMessageReceivedHandler` and
`UseDisconnectedHandler` handlers with events
`ApplicationMessageReceivedAsync` and
`DisconnectedAsync`.
Implement enum `MqttQualityOfServiceLevel` to
replace the int value Qos.

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@osmanhadzic osmanhadzic force-pushed the update-mqttnet-lib branch 2 times, most recently from 99fa69d to ea7eb4e Compare March 18, 2024 09:37
@harlem88 harlem88 requested a review from nedimtokic March 18, 2024 14:29
@osmanhadzic osmanhadzic force-pushed the update-mqttnet-lib branch 2 times, most recently from b921486 to 455af7a Compare March 22, 2024 12:29
Handling exceptions for deadlock threads.
Implement `TryPingAsync` for check is broker
available for sending messages.
Add timeout time to device constructor, timeOut
duration for the connection. Implement new field
in constructors  E2E and Example.
Add timeout for HTTP request on Pairing API.

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@harlem88 harlem88 merged commit 50ce0b6 into astarte-platform:master Mar 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants