21#include <pico/cyw43_arch.h>
100 return ip4addr_ntoa(netif_ip4_addr(netif_list));
Static class providing Wi-Fi and network control on the Pico W.
static bool initialize()
Start Wi-Fi with resilience, retrying connection if it fails.
static bool wifiConnected
Make the Wi-Fi connection in station mode Requires WIFI_SSID and WIFI_PASSWORD to be set in the envir...
static char * getIpAddress()
Get the IP address.
static bool checkAndReconnect()
Attempt to connect to Wi-Fi with retries.
static bool wifiInitialized
static bool startWifiWithResilience()
Start Wi-Fi with resilience, retrying connection if it fails.
static bool tryConnect(int attempts)
Try to connect to Wi-Fi network.
static bool isConnected()
Check whether the device is connected to Wi-Fi.
static void wifi_deinit()
Deinitialize the CYW43 Wi-Fi stack.
static bool restart_wifi()
Restart the Wi-Fi interface.
static int getLinkStatus(int lastStatus)
Get the current link status from the Wi-Fi interface.