set_power_state_sync


Description:

[ 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 DISABLED state.

The calling thread is blocked until a reply is received. See set_power_state for the asynchronous version of this method.

Parameters:

this

A Modem.

state

Either LOW or ON . Every other ModemPowerState value is not allowed.

cancellable

A Cancellable or null.

Returns:

true if the power state was successfully set, false if error is set.




2022 vala-language.org