public class Power
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ReadableDeviceSetting<java.lang.Integer> |
batteryPercentage()
Reads current battery voltage.
|
ReadableDeviceSetting<java.lang.Float> |
batteryVoltage()
Reads current battery voltage.
|
DeviceSetting<ConditionalBroadcasting> |
conditionalBroadcasting()
Deprecated.
Enables/disables flip-to-sleep mode (device is in deep sleep mode when its is lying on its back).
From SDK version 0.10.7 this method is deprecated.
Please use
flipToSleep() or motionOnlyAdvertising() instead. |
DeviceSetting<java.lang.Boolean> |
darkToSleep()
Enables/disables dark-to-sleep mode (device is in deep sleep mode when it is dark in the room).
|
DeviceSetting<java.lang.Float> |
darkToSleepThreshold()
Adjusts dark-to-sleep mode light level threshold.
|
ReadableDeviceSetting<java.lang.Integer> |
estimatedBatteryLifetime()
Device estimated battery lifetime in days.
|
DeviceSetting<java.lang.Boolean> |
flipToSleep()
Enables/disables flip-to-sleep mode (device is in deep sleep mode when its is lying on its back).
|
DeviceSetting<java.lang.Boolean> |
motionOnlyAdvertising()
Enables/disables motion only advertising.
|
DeviceSetting<java.lang.Boolean> |
scheduledAdvertising()
Turns on/off scheduled advertising
|
DeviceSetting<ScheduledPeriod> |
scheduledAdvertisingPeriod()
Sets scheduled advertising period.
|
DeviceSetting<java.lang.Boolean> |
smartPowerMode()
Enables disables smart powe mode (device advertises more frequently when there are devices that are scanning for
them).
|
public ReadableDeviceSetting<java.lang.Float> batteryVoltage()
public ReadableDeviceSetting<java.lang.Integer> batteryPercentage()
@Deprecated public DeviceSetting<ConditionalBroadcasting> conditionalBroadcasting()
flipToSleep()
or motionOnlyAdvertising()
instead.public DeviceSetting<java.lang.Boolean> flipToSleep()
public DeviceSetting<java.lang.Boolean> motionOnlyAdvertising()
public DeviceSetting<java.lang.Boolean> darkToSleep()
public DeviceSetting<java.lang.Float> darkToSleepThreshold()
public DeviceSetting<java.lang.Boolean> smartPowerMode()
public DeviceSetting<java.lang.Boolean> scheduledAdvertising()
public DeviceSetting<ScheduledPeriod> scheduledAdvertisingPeriod()
public ReadableDeviceSetting<java.lang.Integer> estimatedBatteryLifetime()