make it work
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user