tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
673 stars 220 forks source link

ESP32C3 Error if password incorrect #138

Closed dzanis closed 3 years ago

dzanis commented 3 years ago

I checked the incorrect password for the test, the page froze and esp32c3 rebooted Log ESP-IDF Monitor

I (138562) http_server: POST /connect.json
I (138562) http_server: ssid: MYSSID, password: 12345678
I (138562) wifi_manager: MESSAGE: ORDER_CONNECT_STA
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40385a8f
0x40385a8f: _esp_error_check_failed at /esp/esp-idf/components/esp_system/esp_err.c:42

file: "wifi_manager.c" line 1020
func: wifi_manager
expression: esp_wifi_scan_start(&scan_config, false)
....
(skip more dump)
....
Rebooting...

I have little experience with ESP32 IDF. I don't understand why it points to an error in this line https://github.com/tonyp7/esp32-wifi-manager/blob/ab6ac9a5e90830674f6300a4327ef541246f2048/src/wifi_manager.c#L1020