make it work

This commit is contained in:
2026-06-19 13:37:23 +02:00
parent 53b29a4d5b
commit 038af84144

View File

@@ -40,6 +40,9 @@ void app_main(void) {
V important to call `esp_event_loop_create_default();`, then you can just use callbacks from related modules when IP get, ie.
```c++
#include <esp_netif.h>
void on_get_ip(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data) {
const ip_event_got_ip_t* event = (ip_event_got_ip_t*)event_data;
ESP_LOGI(TAG, "ip getto: " IPSTR, IP2STR(&event->ip_info.ip));