debug log for wifi scan, start stop
This commit is contained in:
parent
a7ec4a0489
commit
70827ac3da
@ -47,8 +47,15 @@ static void event_handler(void* arg, esp_event_base_t event_base,
|
|||||||
if (event_base == WIFI_EVENT) {
|
if (event_base == WIFI_EVENT) {
|
||||||
switch (event_id) {
|
switch (event_id) {
|
||||||
case WIFI_EVENT_SCAN_DONE:
|
case WIFI_EVENT_SCAN_DONE:
|
||||||
|
ESP_EARLY_LOGW(TAG, "scan");
|
||||||
xEventGroupSetBits(radio->event_group_handle, WIFI_SCAN_DONE_BIT);
|
xEventGroupSetBits(radio->event_group_handle, WIFI_SCAN_DONE_BIT);
|
||||||
break;
|
break;
|
||||||
|
case WIFI_EVENT_STA_START:
|
||||||
|
ESP_EARLY_LOGW(TAG, "start");
|
||||||
|
break;
|
||||||
|
case WIFI_EVENT_STA_STOP:
|
||||||
|
ESP_EARLY_LOGW(TAG, "stop");
|
||||||
|
break;
|
||||||
case WIFI_EVENT_STA_CONNECTED:
|
case WIFI_EVENT_STA_CONNECTED:
|
||||||
ESP_EARLY_LOGW(TAG, "connected");
|
ESP_EARLY_LOGW(TAG, "connected");
|
||||||
break;
|
break;
|
||||||
@ -74,8 +81,6 @@ static void event_handler(void* arg, esp_event_base_t event_base,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cases to handle later.
|
// Cases to handle later.
|
||||||
// case WIFI_EVENT_STA_START:
|
|
||||||
// case WIFI_EVENT_STA_STOP:
|
|
||||||
// case WIFI_EVENT_STA_AUTHMODE_CHANGE:
|
// case WIFI_EVENT_STA_AUTHMODE_CHANGE:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user