Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22ad76b

Browse files
authored
Merge pull request #3800 from BennyE/wifi-better-logs
Enhance debug log for wifi scan, sta_start, sta_stop
2 parents 7ac2000 + 70827ac commit 22ad76b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ports/esp32s2/common-hal/wifi/__init__.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ static void event_handler(void* arg, esp_event_base_t event_base,
4747
if (event_base == WIFI_EVENT) {
4848
switch (event_id) {
4949
case WIFI_EVENT_SCAN_DONE:
50+
ESP_EARLY_LOGW(TAG, "scan");
5051
xEventGroupSetBits(radio->event_group_handle, WIFI_SCAN_DONE_BIT);
5152
break;
53+
case WIFI_EVENT_STA_START:
54+
ESP_EARLY_LOGW(TAG, "start");
55+
break;
56+
case WIFI_EVENT_STA_STOP:
57+
ESP_EARLY_LOGW(TAG, "stop");
58+
break;
5259
case WIFI_EVENT_STA_CONNECTED:
5360
ESP_EARLY_LOGW(TAG, "connected");
5461
break;
@@ -74,8 +81,6 @@ static void event_handler(void* arg, esp_event_base_t event_base,
7481
}
7582

7683
// Cases to handle later.
77-
// case WIFI_EVENT_STA_START:
78-
// case WIFI_EVENT_STA_STOP:
7984
// case WIFI_EVENT_STA_AUTHMODE_CHANGE:
8085
default:
8186
break;

0 commit comments

Comments
 (0)