User Tools

Site Tools


uphp:functions:setethpower

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:setethpower [2017/05/16 05:33]
admin created
uphp:functions:setethpower [2021/09/13 05:57] (current)
Line 1: Line 1:
-====== setethpower($state) ======+======setethpower======
  
-Turn on or off the ethernet controller MAC layer.+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Parameters: +Enable or disable the ethernet controller
-  * 1 - turn it on +
-  * 0 - turn it off+
  
-This will save power but render your device unreachable.  You could always switch it back on periodically.+====Description====
  
-This reduces power consumption from 2W down to 1W.+<well size="sm"><html> 
 +<span style="font-size:125%">setethpower ( 
 +<span style="color:green">int 
 +<span style="color:blue">$state 
 +<span style="color:black">
 +</html></well> 
 + 
 +This function will turn on or off the ethernet controller MAC layer. 
 + 
 +Turning it off will save power but render your device unreachable (you could always switch it back on periodically).  When off, the power consumption is reduced from 2W down to 1W. 
 + 
 +====Parameter==== 
 + 
 +<html><b><span style="color:blue">$state<span style="color:black"></b></html>: 
 + 
 +  * **1** - Enable the ethernet controller 
 +  * **0** - Disable the ethernet controller 
 + 
 +====Return Values==== 
 + 
 +None 
 + 
 +====Example==== 
 + 
 +<code php> 
 +<?  
 +  setethpower(0); 
 +?> 
 +</code> 
 + 
 +====See Also==== 
 + 
 +[[getethstat()]] - Get Ethernet connection status information 
 + 
 +[[get3gstat()]] - Get cellular data connection status information 
 + 
 +[[net_disable3g()]] - Disable 3G support for the dongle 
 + 
 +[[net_enable3g()]] - Enable 3G support for the dongle 
 + 
 +[[getusbstat()]] - Get USB host status information 
 + 
 +[[netstat()]] - Get Ethernet information
  
uphp/functions/setethpower.1494912832.txt.gz · Last modified: 2021/09/13 05:56 (external edit)