Skip to content

Commit

Permalink
Start web server on ETH_GOT_IP, not just STA_GOT_IP
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyherbert authored Jul 4, 2024
1 parent 5d692a3 commit 6386e40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/esp_ot_br_server/src/esp_br_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,4 +1220,5 @@ static void handler_got_ip_event(void *arg, esp_event_base_t event_base, int32_t
void esp_br_web_start(char *base_path)
{
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &handler_got_ip_event, base_path));
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &handler_got_ip_event, base_path));
}

0 comments on commit 6386e40

Please sign in to comment.