italocjs / ESP32_OTA_APMODE

This is a sample code for using OTA on Acess point

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32_OTA_APMODE

This is a sample code for using OTA on Access point mode. Previously an issue happened on AP or offline connections where the ESP32 tried to import jquery.min.js from Google API. Obviously, this doesn't work, as there is no internet. To fix this, we can either embed the file on SPIFFS, or convert it to binary and just paste on our code.

This will increase the program size by ~30 kb, instead of ~140kb from the original file + spiffs lib. No additional libraries needed. Works fine on PlatformIO.

reference 1: https://randomnerdtutorials.com/esp32-over-the-air-ota-programming/ reference 2: https://esp32.com/viewtopic.php?t=11744

Tips: Using it under ESP-IDF (4.4.4) + arduino component (2.0.9)

  • Create an task to simulate the loop, 2k stack has crashed, i had plenty available so i have been using 16k without any issues.
  • If using C++, remember to user extern "C" void app_main(void)

About

This is a sample code for using OTA on Acess point


Languages

Language:C++ 100.0%