I have been trying to establish a stable connection to an MQTT broker for a long time.
Unfortunately, the connection breaks off after different times. Sometimes it runs for a few days and sometimes just a few hours. I am using the MKRNB, Arduino-mqtt librarys and a 1NCE Sim Card.
Is there anyone who has a stable connection and would share the code here. I would be very grateful.
Thanks!
I have one that has ran for weeks to my personal MQTT broker (without any security other than a userid and password). You might take a look at Sketch of a test MQTT client recovers most errors and uses software WDT for rest - MKRNB1500 - Arduino Forum to see if it might be of any interest. I use an AT@T SIM. There are many issues with the libraries and seems to be some hardware issues, not sure if the hardware issues are with Arduino, UBlox, or both.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.