======get3gstat====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Get cellular data connection status information ====Description==== array get3gstat ( ) Return an array containing information on the status of the USB Dongle network interface ====Parameters==== None ====Return Values==== 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)| ====Example====
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 ) ====See Also==== [[net_enable3g()]] - Enable 3G support for the dongle [[net_disable3g()]] - Disable 3G support for the dongle [[getethstat()]] - Get Ethernet connection status information