Define a callback function to detect when the WiFi connected state has changed.

app.SetOnWifiChange( callback )

The state parameter can be “CONNECTING”, “CONNECTED”, or “DISCONNECTED”. The WiFi ssid is passed on “CONNECTED” only.

See Also: WifiConnect, WifiScan

Example - Detect WiFi Changes click to expand contents