Status API
getConnectionStatus
The getConnectionStatus function will return the current network connection status of the device. It will return NetWizardConnectionStatus enum as its return value, as described here.
API Reference
NetWizardConnectionStatus status = NW.getConnectionStatus();