Something I almost missed is that OTA updates for ESP32 boards is now available on Arduino IOT Cloud and Web Editor. I've used it on two different projects. No include files are necessary to get this to work. It just works assuming you have compiled and uploaded your sketch since the feature was implemented. I had one board that I wanted to make a small change to the coding. Once I compiled and uploaded a sketch, OTA updates worked well. Since it is in the back yard monitoring weather, this will be a welcome enhancement to updates.
I would have missed it if I hadn't happened to see the notice on the Arduino website. Thought I would share.
-- Kevin
Something I almost missed is that OTA updates for ESP32 boards is now available on Arduino IOT Cloud and Web Editor. I've used it on two different projects. No include files are necessary to get this to work. It just works assuming you have compiled and uploaded your sketch since the feature was implemented. I had one board that I wanted to make a small change to the coding. Once I compiled and uploaded a sketch, OTA updates worked well. Since it is in the back yard monitoring weather, this will be a welcome enhancement to updates.
I would have missed it if I hadn't happened to see the notice on the Arduino website. Thought I would share.
Can you extract the OTA code from the sketch and post it here as an example for those (99%) not using the cloud.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
There is nothing to extract @zander. What I was posting about was purely a new feature for IOT Cloud. The code is unchanged from before. It's all handled in the background.
Where you normally choose your port, if your board is not connect, it says OTA. You just upload and it works.
-- Kevin
@tberrykev Too bad, it would be nice to have a sample of the OTA code for those of us not using the cloud (I have a plan but don't use it for several reasons). I think I know what you are talking about, I have noticed that extra port for a few months now, just didn't know I could actually use it.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@zander, if you're really interested in OTA for ESP32, I think Expressif has a more complicated solution that I haven't tried. I can add links below to more information:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/ota.html
Good luck.
-- Kevin
@tberrykev It's not more complicated, it's how OTA is done. That code is obviously somehow hidden in the cloud apps and if I was using the cloud again I would take advantage of it. I found a sample procedure in one of my camera web server examples that I will probably copy, thanks anyway.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting