- Tue Jul 31, 2018 6:52 am
#77501
Same esp32 dev board same code as far as the arduino c code. Early on 1.8.2 had the esp32 core added manually whereas the 1.8.5 had the boards and the support code for ESP32 added via the preferences url method. I think things should get leaner ( more compact w.r.t. code size) with newer versions. Most I suspect only use a small subset of all the commercial and contributed libraries and a small number of board types.
There are efficient ways to add boards and add libraries but no similar way to delete them. It suggests a bias toward bloat and a reluctance from commercial coders to see code get deleted. Then however there is the next increase in hardware memory to be quickly followed by additional code bloat.
On a Microchip PIC there was a small boot loader taking up a small amount of the code space allowing for uploads of over 90% of the code space. With Arduino OTA the old code just sits there taking up 50% of the space yet the OTA handle that hooks the new upload and is embedded in the active code takes little code space and never changes yet it holds hostage all the code. If it were separate code and got air time via yield() it would be permanently available to hook the next upload and allow all the current code space to be overridden upon an upload.
Anyway looks like I'll have to keep 1.8.2 for OTA.