Skip to content

Commit

Permalink
Merge branch 'itwt/rename_connect_handler' into 'master'
Browse files Browse the repository at this point in the history
Change name from `connect_handler` to `start_handler`

See merge request espressif/esp-idf!24201
  • Loading branch information
jack0c committed Jul 10, 2023
2 parents 453dc6a + b94fa5d commit 3790cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/wifi/itwt/main/itwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3790cec

Please sign in to comment.