-
Notifications
You must be signed in to change notification settings - Fork 237
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
Unreliable behaviour with reconnections #301
Comments
I created a minimal (working) example for the Arduino IDE:
To make the example work, a certificates.h needs to be generated from the SSLClient library. Hope someone can help me figure this out :) |
Same problem here, I'm using obs.: I'm using AWS IoT Core broker. |
Hi @magmilo , updates here! I solved this problem here for @256dpi First, congratulations for this excellent job, if you can add this to the Readme I think it will help a lot! Another thing that you could add is that your library can be installed with arduino-cli named as MQTT
|
Hi, first of all thank you for creating and sharing this library.
I'm facing a problem using the arduino-mqtt library in combination with SSLClient and WiFi.h WiFiClient to connect to a HiveMQ server.
The goal is to get a reliable reconnection setup of the client going using Arduino's Connection Handler to detect network disconnects.
When starting the application I can publish messages without any issues. The frequency of published messages is once every two seconds, and the MQTT QoS is set to 1. As soon as the WiFi connection is lost, one of four things occur, seemingly random:
The development board in use is a Arduino Portenta H7.
The codebase in use is quite large, but I will try to replicate the behaviour using a minimal example to post the code in the following days. I'd appreciate any hints or proposals for a better solution.
The text was updated successfully, but these errors were encountered: