thinger-io / Arduino-Library

IOTMP Arduino Library for connecting devices to thinger.io #IoT
https://thinger.io
MIT License
111 stars 66 forks source link

Unable to update OTA anymore on Arduino RP2040 #46

Open tomastik opened 1 year ago

tomastik commented 1 year ago

I am currently unable to update the firmware of my devices over the air. The procedure seems to go fine, I can see the devices online, I can push the update and I see bar progressing, but after that the device just reboots in its previous state. This happens on the devices already shipped and installed remotely.

To give some context, I am using Arduino RP2040 in stock condition. My code doesn't do anything special, just collects some data from the sensors. It used to work perfectly fine until few months ago, but I am now stuck with OTA.

I did some tests on some devices here with me. Tried uploading via USB and if I start from scratch the device get stuck and never boots correctly. That means it doesn't reach even the Serial.print at the very beginning of the setup. The only way to make it work is to exclude the ThingerMbedOTA.h from the code. In this case the device works as intended, but clearly there's no OTA anymore.

I also tried reverting to the thinger library version 2.21.0, and with this I can indeed upload with the OTA extension active. The system works then as intended but again when I update remotely the device just reboots in its previous state.

Since the devices I have shipped probably have an old thinger library version, this leads me to think there's an bug/incompatibility with the OTA thinger later versions.

Please advise.

Thanks, Antonio