WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get cellular data connection status information
Return an array containing information on the status of the USB Dongle network interface
None
Array containing the following keys and values:
KEY | TYPE | VALUE |
---|---|---|
RX | int | Number of bytes received |
TX | int | Number of bytes transmitted |
signal | int | signal strength |
snr | string | Signal to Noise Ratio dBm (and evaluation) |
enabled | int | 1 if cellular data is enabled, 0 if disabled |
connected | int | 1 if currently connected, 0 if disconnected |
ip_address | string | Current IP address (if connected) |
<pre><? $arr=get3gstat(); if ($arr['connected']) { print("Cellular data is currently connected\r\n"); } else { print("Cellular data is NOT currently connected\r\n"); } print_r($arr); ?></pre>
Typical output for the above example (results vary depending on the status of the connection):
Cellular data is NOT currently connected [$arr] = Array ( (int) [RX] => 0 (int) [TX] => 0 (int) [signal] => 0 (string) [snr] => < -113 dBm (Marginal) (int) [enabled] => 1 (int) [connected] => 0 )
net_enable3g() - Enable 3G support for the dongle
net_disable3g() - Disable 3G support for the dongle
getethstat() - Get Ethernet connection status information