diff --git a/src/main.cpp b/src/main.cpp index d0677fb..694cf36 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,10 @@ int main() { return 1; } else { printf("Connected.\n"); + + extern cyw43_t cyw43_state; + auto ip_addr = cyw43_state.netif[CYW43_ITF_STA].ip_addr.addr; + printf("IP Address: %lu.%lu.%lu.%lu\n", ip_addr & 0xFF, (ip_addr >> 8) & 0xFF, (ip_addr >> 16) & 0xFF, ip_addr >> 24); } run_server();