This shows you the differences between two versions of the page.
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. | + | < |
- | Parameters: | + | Enable or disable the ethernet controller |
- | * 1 - turn it on | + | |
- | * 0 - turn it off | + | |
- | This will save power but render your device unreachable. | + | ====Description==== |
- | This reduces | + | <well size=" |
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | </ | ||
+ | |||
+ | 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). | ||
+ | |||
+ | ====Parameter==== | ||
+ | |||
+ | < | ||
+ | |||
+ | * **1** - Enable the ethernet controller | ||
+ | * **0** - Disable the ethernet controller | ||
+ | |||
+ | ====Return Values==== | ||
+ | |||
+ | None | ||
+ | |||
+ | ====Example==== | ||
+ | |||
+ | <code php> | ||
+ | <? | ||
+ | setethpower(0); | ||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | ====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 | ||