0

AdafruitIO_WiFi library and OTA
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

AdafruitIO_WiFi library and OTA

by adaToad on Sun Jul 21, 2019 7:42 pm

I have previously worked with somewhat Arduino compatible boards from Particle and really liked the ability to update software over the air (ie without having to be physically tethered to my Arduino IDE computer with a serial cable, but using Wifi instead)

Recently I have been playing with a Huzzah ESP32 feather. Both the adafruit io examples (https://github.com/adafruit/Adafruit_IO ... r/examples) and the JeVe_EasyOTA library (https://github.com/jeroenvermeulen/JeVe_EasyOTA)

Both work excellently. The latter is particularly user friendly as it involves very little client code in my sketches (no html, no http server code etc.) and works directly from the Arduino IDE: instead of selecting a serial port to push code into the boards, just select a network port (the Huzzah/OTA libraries declare themselves to the IDE) Otherwise: zero workflow change. Most excellent !

Now I am wondering how hard it would be to combine the AdafruitIO_Wifi with such a OTA capability. At the moment they both connect to Wifi, so you cant easily combine the existing libraries.

I am aware that "just adding more cruft" to any library doesnt necessarily make it better and increases bulk so there may be reasons NOT to do this. But perhaps a subclass capable of doing OTA in addition to the main AdafruitIO_WiFi class could be the compromise ?

It sure would be useful to update various installed sensor feathers without having to take them down, unpack them, plug them in etc etc.

I also realize a full "industrial strength" OTA capability would require more thought re cybersecurity etc. which may be out of scope for Adafruit as a company promoting "just do it" simplicity and fast learning with its excellent guides and products. I think that would be fine personally, adding a disclaimer you should probably not run critical systems or house door openers etc. with it might be sufficient ?

Anyway, putting in my vote for OTA in or with Adafruit IO for the Wifi feathers :)

adaToad
 
Posts: 5
Joined: Sun Aug 10, 2014 2:46 pm

Re: AdafruitIO_WiFi library and OTA

by brubell on Mon Jul 22, 2019 12:02 pm

Now I am wondering how hard it would be to combine the AdafruitIO_Wifi with such a OTA capability. At the moment they both connect to Wifi, so you cant easily combine the existing libraries.

It's something on my list, but I haven't approached it just yet - my development focus right now is on Adafruit IO and CircuitPython. It's also my vote, too. There's a few GitHub libraries which provide OTA (GitHub is down currently), and I'd gladly accept a feature issue created in the Adafruit IO Arduino repository relating to brainstorming around this :)

brubell
 
Posts: 471
Joined: Fri Jul 17, 2015 10:33 pm

Re: AdafruitIO_WiFi library and OTA

by adaToad on Tue Jul 23, 2019 12:30 am

Done: https://github.com/adafruit/Adafruit_IO ... /issues/93

we can continue the thread there when the time is ripe :)

adaToad
 
Posts: 5
Joined: Sun Aug 10, 2014 2:46 pm

Please be positive and constructive with your questions and comments.