Is there any sample code to run the OTA update without internet? All the examples I have ever seen use ajax on a google server which means it requires internet access. I just want to be able to do the update on a local network where internet access is not needed or possible.
Take a look at ESP32 OTA (Over-the-Air) Updates - AsyncElegantOTA Arduino | Random Nerd Tutorials and ESP32 Basic Over The Air (OTA) Programming In Arduino IDE - 3 Steps
Thankyou. ElegantOTA looks like that is a good option to try.
Basically OTA updates only requires a connection to the same network of the device running the IDE and the ESP32.
The use of mDNS to create the port for the IDE does not allow for a direct connection from the IDE device to the ESP32 Access Point. However, HTTP updates can upload a compiled binary from any device that can connect to the ESP32.
You can setup AP mode on esp32 using WiFi.softAP() and even add custom IP using WiFi.softAPConfig() .
That way you don't even need a wifi router. Esp will create it's own AP to which you connect and can do OTA update .
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.