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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32C3 Error if password incorrect

dzanis opened this issue · comments

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

ESP_ERROR_CHECK(esp_wifi_scan_start(&scan_config, false));