User Tools

Site Tools


uphp:functions:get3gstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:get3gstat [2017/04/10 11:11]
jeff created
uphp:functions:get3gstat [2021/09/13 05:57] (current)
Line 3: Line 3:
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Get cellular data connection information+Get cellular data connection status information
  
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">array <span style="font-size:125%;color:green">array
-<span style="color:black"> +<span style="color:black">get3gstat ( ) 
-</html> +</html></well>
-[[get3gstat]] ( ) +
-</well>+
  
 Return an array containing information on the status of the USB Dongle network interface Return an array containing information on the status of the USB Dongle network interface
Line 21: Line 18:
 None None
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values: <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values:
Line 29: Line 26:
 |TX|<html><b><span style="color:green">int</b></html>|Number of bytes transmitted| |TX|<html><b><span style="color:green">int</b></html>|Number of bytes transmitted|
 |signal|<html><b><span style="color:green">int</b></html>|signal strength| |signal|<html><b><span style="color:green">int</b></html>|signal strength|
-|snr|<html><b><span style="color:green">string</b></html>|Signal to noise ratio dBm (and evaluation)|+|snr|<html><b><span style="color:green">string</b></html>|Signal to Noise Ratio dBm (and evaluation)|
 |enabled|<html><b><span style="color:green">int</b></html>|1 if cellular data is enabled, 0 if disabled| |enabled|<html><b><span style="color:green">int</b></html>|1 if cellular data is enabled, 0 if disabled|
 |connected|<html><b><span style="color:green">int</b></html>|1 if currently connected, 0 if disconnected| |connected|<html><b><span style="color:green">int</b></html>|1 if currently connected, 0 if disconnected|
Line 43: Line 40:
   } else {   } else {
     print("Cellular data is NOT currently connected\r\n");     print("Cellular data is NOT currently connected\r\n");
-  print_r($arr); 
   }   }
 +  print_r($arr);
 ?></pre> ?></pre>
 </code> </code>
Line 61: Line 58:
  
 </code> </code>
 +
 +====See Also====
 +
 +[[net_enable3g()]] - Enable 3G support for the dongle
 +
 +[[net_disable3g()]] - Disable 3G support for the dongle
 +
 +[[getethstat()]] - Get Ethernet connection status information
 +
uphp/functions/get3gstat.1491822669.txt.gz · Last modified: 2021/09/13 05:56 (external edit)