From 168c47f896ea4ea7a3b67cbd85dc95371ef30b8f Mon Sep 17 00:00:00 2001 From: Derek Duncan Date: Wed, 31 May 2023 09:32:55 -0500 Subject: [PATCH] Update itwt.c Change name from `connect_handler` to `start_handler` --- examples/wifi/itwt/main/itwt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wifi/itwt/main/itwt.c b/examples/wifi/itwt/main/itwt.c index 3e6b015f81..bb4df81d11 100644 --- a/examples/wifi/itwt/main/itwt.c +++ b/examples/wifi/itwt/main/itwt.c @@ -137,7 +137,7 @@ static void got_ip_handler(void *arg, esp_event_base_t event_base, } } -static void connect_handler(void *arg, esp_event_base_t event_base, +static void start_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data) { ESP_LOGI(TAG, "sta connect to %s", DEFAULT_SSID); @@ -204,7 +204,7 @@ static void wifi_itwt(void) ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT, WIFI_EVENT_STA_START, - &connect_handler, + &start_handler, NULL, NULL)); ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT,