OTA update without internet/WiFi network

mriksman
Posts: 1
Joined: Tue Mar 24, 2020 1:47 pm

Re: OTA update without internet/WiFi network

Postby mriksman » Tue Mar 24, 2020 1:50 pm

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.
RobinBlood wrote:
Thu Nov 07, 2019 11:18 am
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());
  
 

Norrepli
Posts: 1
Joined: Thu Mar 16, 2017 7:44 pm

Re: OTA update without internet/WiFi network

Postby Norrepli » Mon Jun 15, 2020 9:15 pm

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!

Who is online

Users browsing this forum: Vader_Mester and 40 guests