freesmartphone.org Proximity Interface
Description
This interface provides access to a proximity device.
Namespace
org.freesmartphone.Device.Proximity
Methods
Signals
Properties
None
Errors
None
Methods
GetProximity ( ) → ii
Description: Get the last percentage value of the proximity device (most probably 0 or 100), or -1 if unknown.
Returns:
i: proximity The last proximity.
i: epoch Timestamp indicating when this value has been received.
Signals
Proximity ( i )
Description: Sent, when the proximity changes.
Parameters:
i: proximity The new proximity in percentage (most probably 0 or 100).