get3gstat

(FW >= 1.0)

get3gstat - get cellular data connection information

Description

array get3gstat()

This will return an array containing information about the cellular dongle

Parameters

none

Return Value

array of data with the following keys:
Key Description
RX number of bytes received
TX number of bytes transmitted
signal signal strength
enabled 1 if cellular data is enabled, 0 if disabled
connected 1 if currently connected, 0 if disconnected
ip_address Current IP address

Examples

<? 
$arr = get3gstat();
if ($arr['connected'])
print("Cellular data is currently connected!"); ?>