Hello. I've been trying to make Arduino cloud sketch also work without an internet connection, but it seems to keep restarting the Arduino or it doesn't get to the loop as if fails to connect to the internet. If I comment the line with
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
It then works without a problem as I would want it to, but I also want it to connect to the cloud when it can. I am using an rp2040 connect board. Thank you.
Update: It was the watchdog, so apparently this is a built in functionality that counts to 10 and if ArduinoCloud.update() is not called within the interval it restarts the board. Leaving the update line in the code makes the system unavailable until it gets a connection, but you can disable the watchdog in the begin function ArduinoCloud.begin(ArduinoIoTPreferredConnection, false);
Hope this helps someone.
2 Likes