I have an Opta connect via ethernet to a Mosquitto MQTT broker on a Raspberry Pi. Sketch uploads are done by the IDE 2.3.0 and version 4.1.1 Arduino Mbed OS Opta Boards is installed.
When I reboot the Raspberry Pi the Opta fails to reconnect to the Mosquitto broker. I have a client in Node-RED that is able to reconnect, so I know the broker is responding correctly.
Hi, if everyone found the solution, I'll be interested by also. Facing same issue on OPTA while any other device it's OK. Any workaround would be fine also
Great @alb-6 ! Your simple algorithm avoids turning Opta into a opening-socket machine gun. Even though very powerful, Opta -and every single machine- has limited resources. Moreover, pausing between reconections help you to deal with some firewalls than can detect connection rate abuse and block you.
Generally speaking, handle carefully your socket instead open and close multiple, it improves application responsiveness and bandwidth.