Status API

localIP

The localIP function will return the local IP address of the connected network.

Note: the network connection status should be CONNECTED in order for this function to work properly. You can verify this using getConnectionStatus function.

API Reference

IPAddress ip = NW.localIP();
String ip = NW.localIP().toString();
Previous
getChannel