WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get Ethernet connection status information
Return an array containing information on the status of the LAN interface
None
Array containing the following keys and values:
| KEY | TYPE | VALUE | 
|---|---|---|
| RX | int | Number of bytes received | 
| TX | int | Number of bytes transmitted | 
| RXPKT | int | Number of packets received | 
| TXPKT | int | Number of packets transmitted | 
| connected | int | 1 if currently connected, 0 if disconnected | 
| ip_address | string | Current IP address (if connected) | 
| gateway | string | Current gateway address (if connected) | 
| DNS | string | Current DNS address (if connected) | 
<pre><? $arr=getethstat(); if ($arr['connected']) { print("Ethernet is currently connected\r\n"); } else { print("Ethernet 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):
Ethernet is currently connected [$arr] = Array ( (int) [RX] => 11134469 (int) [TX] => 19102145 (int) [RXPKT] => 536579 (int) [TXPKT] => 174112 (int) [connected] => 1 (string) [ip_address] => 90.0.0.126 (string) [gateway] => 90.0.0.1 (string) [DNS] => 90.0.0.1 )
setethpower() - Enable or disable the ethernet controller
get3gstat() - Get cellular data connection status information