public class Sensors.Motion
extends java.lang.Object
Constructor and Description |
---|
Motion() |
Modifier and Type | Method and Description |
---|---|
DeviceSetting<java.lang.Integer> |
delay()
It's a 32-bit value describing how long beacon will advertise after it stops moving when motion only advertising is enabled.
|
DeviceSetting<java.lang.Boolean> |
enabled()
Enables/disables motion detection.
|
NotifiableDeviceSetting<java.lang.Boolean> |
state()
Checks if device is in motion.
|
public DeviceSetting<java.lang.Boolean> enabled()
public DeviceSetting<java.lang.Integer> delay()
public NotifiableDeviceSetting<java.lang.Boolean> state()
Note: You need to enable motion detection in order to receive notification.