My code basically starts, gathers some data, connects to the cloud, sends it and then goes to a timed sleep. After waking up, it restarts (“System.restart();”), and starts the process again.
This is a product device, I am locking new firmware to the device and it says next time it connects it will update automatically. The problem is it only updates when power resetting, meaning I need to disconnect the device from the power source and not resetting with software or the reset button.
Hope someone can help me with a solution.
I believe I need to force a handshake with the cloud.