Status API

subnetMask

The subnetMask function will return the subnet mask 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 subnet = NW.subnetMask();
String subnet = NW.subnetMask().toString();
Previous
gatewayIP