IP_EVENT Value
Posted: Fri May 10, 2024 9:50 am
Hi,
I would like to know how is the IP_EVENT and WIFI_EVENT value derived?. In my program, is it possible to register and deregister the esp_event_handler_register and esp_event_loop_create_default() multiple times ?
I would like to know how is the IP_EVENT and WIFI_EVENT value derived?. In my program, is it possible to register and deregister the esp_event_handler_register and esp_event_loop_create_default() multiple times ?
Code: Select all
esp_netif_init();
esp_event_loop_create_default();
esp_netif_create_default_wifi_sta();
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
esp_wifi_init(&cfg);
esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &wifi_event_handler, NULL);
esp_event_handler_register(IP_EVENT, ESP_EVENT_ANY_ID, &wifi_event_handler, NULL);