Random amount of errors during wifi connect to WPA2
Posted: Sun Jul 08, 2018 4:06 pm
I just tried changing my router wifi from WPA to WPA2 and noticed a new error that I hadn't seen before. I get a random amount before finally getting my DHCP address. Sometimes none and sometimes several (4 or 5). Seems like the wifi section is figuring something out before it gets it right. Thinking perhaps there is some info I should give it.
Should I check the AP mode before calling esp_wifi_set_config and fill in the threshold.authmode? This is what I give it now...
The errors I get while connecting....
Should I check the AP mode before calling esp_wifi_set_config and fill in the threshold.authmode? This is what I give it now...
Code: Select all
wifi_config_t wifi_config = {
.sta = {
//.ssid = "",
//.password = "",
.scan_method = 0, //DEFAULT_SCAN_METHOD,
.sort_method = 0, //DEFAULT_SORT_METHOD,
.threshold.rssi = -127, //DEFAULT_RSSI,
.threshold.authmode = 0, //DEFAULT_AUTHMODE,
},
};
Code: Select all
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
leeo> E (2449) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (3279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (4279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (5279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (6279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (7279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (8279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (9279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (10279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (11279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
E (12279) wifi: Set status to INIT.
SYSTEM_EVENT_STA_DISCONNECTED
WIFI Connecting...
SYSTEM_EVENT_STA_START : 0
SYSTEM_EVENT_STA_GOT_IP
Got IP: 192.168.3.100
Got IP: 192.168.3.100
Net mask: 255.255.255.0
Gateway: 192.168.3.1