networkConnected

Network

Returns the network connection status of the device.

var networkStatus = $m.networkConnected();

$m.toast("Is network connected? " + networkStatus);

Syntax

        $m.networkConnected()

Return Value

status - {boolean}. True if the device is connected to a WiFi or a cellular network.