freesmartphone.org PowerControl Interface

Description

This interface provides access to a power-controllable device.

Namespace

org.freesmartphone.Device.PowerControl

Methods

Signals

Properties

None

Errors

None

Methods

GetPower ( ) → b

Description: Get the power status.

Returns:

b: on True, if the device is powered on. False, otherwise.

SetPower ( b )

Description: Power the device on, or turn the device off.

Parameters:*

b: on True, if the device should be turned on. False, otherwise.

Signals

Power ( b )

Description: Sent, when the device has changed power status.

Parameters:

b: on True, if the device is now powered on. False, otherwise.