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