WiFi Manager - please, your help for choosing a library

I’ve been trying to implement some interface like WiFi Manager in my code. I’m first trying this one:
ESP_WiFiManager
https://platformio.org/lib/show/6915/ESP_WiFiManager

But, despite all that huge code, it doesn’t connect via DHCP. In a message at Serial Monitor it reports an IP address that doesn’t match my local network.

Does someone know this library? Any clue about this failure?

Does someone recommend any other WiFi Manager library?

Thank you.
Regards,
Ciro.

I’m trying it again, now with khoih-prog / ESPAsync_WiFiManager.

I’ve placed the code example Async_AutoConnectWithFeedback inside my own code, commenting out all other WiFi and related existing libs.

But I’m facing some issues.

During setup it’s reported that the device has connected to one of my home’s WiFi routers (WiFi-Home 4), which has gateway IP 192.168.5.1. But the report says the client’s IP is 192.168.2.232 and gateways’s is 192.168.2.1 !
In fact it doesn’t connect.

Moreover, SPIFFS doesn’t start anymore.

E (30) SPIFFS: mount failed, -10025

[E][SPIFFS.cpp:89] begin(): Mounting SPIFFS failed! Error: -1

Starting Async_AutoConnectWithFeedBack using LittleFS on TTGO LoRa32-OLED v2.1.6
ESPAsync_WiFiManager v1.9.3
[WM] RFC925 Hostname = AutoConnectWithFeedBack
[WM] setSTAStaticIPConfig
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
ESP Self-Stored: SSID = WiFi-Home 4, Pass = gracamello
[WM] * Add SSID = WiFi-Home 4 , PW = gracamello
Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
[WM] LoadWiFiCfgFile
[WM] OK
[WM] stationIP = 192.168.2.232 , gatewayIP = 192.168.2.1
[WM] netMask = 255.255.255.0
[WM] dns1IP = 192.168.2.1 , dns2IP = 8.8.8.8
Got stored Credentials. Timeout 120s for Config Portal
Current Timezone is not set. Enter Config Portal to set.
ConnectMultiWiFi in setup
[WM] ConnectMultiWiFi with :
[WM] * Flash-stored Router_SSID = WiFi-Home 4 , Router_Pass = gracamello
[WM] * Add SSID = WiFi-Home 4 , PW = gracamello
[WM] Connecting MultiWifi…
[WM] WiFi connected after time: 1
[WM] SSID: WiFi-Home 4 ,RSSI= -49
[WM] Channel: 11 ,IP address: 192.168.2.232
After waiting 10.49 secs more in setup(), connection result is connected. Local IP: 192.168.2.232
[WM] freeing allocated params!

Please, could someone help?
Thank you.
Regards, Ciro.

I found the issue here:

// LittleFS has higher priority than SPIFFS

#if (ARDUINO_ESP32C3_DEV)

// Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support 

LittleFS

#define USE_LITTLEFS false

#define USE_SPIFFS true

#else

#define USE_LITTLEFS false

#define USE_SPIFFS true

#endif

As I’ve got no LittleFS partition, I had to set only “USE_SPIFFS” as true.