[ Version ( since = "1.0" ) ]
public bool set_power_state_sync (ModemPowerState state, Cancellable? cancellable = null) throws Error
Synchronously sets the power state of the device.
This method can only be used while the modem is in mm_modem_state_disabled state.
The calling thread is blocked until a reply is received. See set_power_state for the asynchronous version of this method.
| this |
A Modem. |
| state |
Either mm_modem_power_state_low or mm_modem_power_state_on. Every other ModemPowerState value is not allowed. |
| cancellable |
A Cancellable or null. |
|
true if the power state was successfully set, false if throws is set. |