khoih-prog / ESPAsync_WiFiManager_Lite

Library using AsyncWebServer to configure MultiWiFi/Credentials at runtime for ESP32 (including ESP32-S2 and ESP32-C3) and ESP8266 boards. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Optional default Credentials to be autoloaded into Config Portal to use or change instead of manually input. Credentials are saved in LittleFS, SPIFFS or EEPROM. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Double or MultiDetectDetector as well as Virtual Switches feature permits entering Config Portal as requested.
MIT License
57 stars 14 forks source link

Not working with ESP32 Core 2.0.X because of LittleFS? #4

Closed Frtrillo closed 2 years ago

Frtrillo commented 2 years ago

Describe the bug

I can't use this library with ESP32 Core 2.0 or 2.0.1.

Steps to Reproduce

Update ESP32 Core to 2.0 or 2.0.1 and compile example.

Expected behavior

Compile and run

Actual behavior

I get compile errors if I compile and run because of LittleFS.

Debug and AT-command log (if applicable)

EEPROM Flag read = 0xFFFE0001 SetFlag write = 0xFFFD0002 [WML] Invalid Stored WiFi Config Data

Screenshots

image

Information

Arduino IDE version: 1.8.13 ESP32 Core Version 2.0 OS: Windows 10

khoih-prog commented 2 years ago

Hi @Frtrillo

Thanks for your bug report and I now have found the bug and fix it with new release ESPAsync_WiFiManager_Lite releases v1.6.0

I'm sorry to not being able to duplicate the bug previously.

Best Regards,


Release v1.6.0

  1. Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library.
  2. Fix bug returning IP 255.255.255.255 in core v2.0.0+ when using hostname