Page 2 of 2

Re: OTA update without internet/WiFi network

Posted: Tue Mar 24, 2020 1:50 pm
by mriksman
You are showing Arduino code. Which, although their SDK is similar to Espressif's ESP-IDF SDK, it is not identical, and can lag behind in terms of features. This forum is likely aimed at people using the Espressif ESP-IDF SDK.
This looks quite complicated.
I just used the OTAWebUpdater from the example and changed the WiFi.begin with WiFi.softAP

worked for me ...

Code: Select all

void setup(void) {
  Serial.begin(115200);

  // Connect to WiFi network
  WiFi.softAP(ssid, password);
  Serial.println("");

  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.softAPIP());
  
 

Re: OTA update without internet/WiFi network

Posted: Mon Jun 15, 2020 9:15 pm
by Norrepli
In case anyone stumbles upon this in the future, I just published an even more minimal example of an OTA updater where the ESP32 is in SoftAP mode acting as an HTTP server: https://github.com/Jeija/esp32-softap-ota
It doesn't require jQuery or anything and the code for the ESP32 is pretty much as short as it can be. Hope this is useful to some folks!

Re: OTA update without internet/WiFi network

Posted: Wed Feb 03, 2021 9:42 pm
by vinny503
Hi,
I tried using below code
https://github.com/versamodule/ESP32-OTA-Webserver

It seems update_post_handler never get invoked when update firmware button is pressed from UI.
I used only 2 handler to register.
Update handler and status handler.
Does other 3 also needed??
I moved html code to my esp32 project.