summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBennyE <bennye_hh@posteo.net>2020-12-06 23:38:04 +0100
committerBennyE <bennye_hh@posteo.net>2020-12-06 23:38:04 +0100
commit70827ac3da1138f3dbd4107ecb139cfbefd1846f (patch)
tree8738fa1f53cad931f78bccff2a1232633f70405a
parenta7ec4a0489d4ff6ca1d9f0f750ba5f18994d32f8 (diff)
debug log for wifi scan, start stop
-rw-r--r--ports/esp32s2/common-hal/wifi/__init__.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ports/esp32s2/common-hal/wifi/__init__.c b/ports/esp32s2/common-hal/wifi/__init__.c
index e06038c22..48fee4500 100644
--- a/ports/esp32s2/common-hal/wifi/__init__.c
+++ b/ports/esp32s2/common-hal/wifi/__init__.c
@@ -47,8 +47,15 @@ static void event_handler(void* arg, esp_event_base_t event_base,
if (event_base == WIFI_EVENT) {
switch (event_id) {
case WIFI_EVENT_SCAN_DONE:
+ ESP_EARLY_LOGW(TAG, "scan");
xEventGroupSetBits(radio->event_group_handle, WIFI_SCAN_DONE_BIT);
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:
ESP_EARLY_LOGW(TAG, "connected");
break;
@@ -74,8 +81,6 @@ static void event_handler(void* arg, esp_event_base_t event_base,
}
// Cases to handle later.
- // case WIFI_EVENT_STA_START:
- // case WIFI_EVENT_STA_STOP:
// case WIFI_EVENT_STA_AUTHMODE_CHANGE:
default:
break;