WakeUp function provides device awake monitoring. It's especially
applicable to battery-operated devices. Such device can notify the system
that it's awake and can receive commands with a PROPERTY_AWAKE
property event.
The device can periodically wake up for commands. The interval can be managed
with PROPERTY_WAKE_UP_INTERVAL property.
LevelData, BooleanData
| Modifier and Type | Field and Description |
|---|---|
| public static final String | PROPERTY_AWAKE
Specifies the awake property name. |
| public static final String | PROPERTY_WAKE_UP_INTERVAL
Specifies the wake up interval. |
| Modifier and Type | Method and Description |
|---|---|
| public LevelData | |
| public void | setWakeUpInterval(BigDecimal
The new wake up interval. interval, String The interval unit. If the unit is unit)null, the interval
is measured in milliseconds.Sets wake up interval according to the specified unit. |
| PROPERTY_AWAKE | back to summary |
|---|---|
| public static final String PROPERTY_AWAKE Specifies the awake property name. The property access type can be
The property value type is | |
| PROPERTY_WAKE_UP_INTERVAL | back to summary |
|---|---|
| public static final String PROPERTY_WAKE_UP_INTERVAL Specifies the wake up interval. The device can periodically wake up and
receive commands. That interval is managed by this eventable property.
The current property value is available with | |
| getWakeUpInterval | back to summary |
|---|---|
| public LevelData getWakeUpInterval() throws DeviceException Returns the current wake up interval. It's a getter method for
The interval can be measured in different units like hours, minutes,
seconds, etc. The unit is specified in
| |
| setWakeUpInterval | back to summary |
|---|---|
| public void setWakeUpInterval(BigDecimal interval, String unit) throws DeviceException Sets wake up interval according to the specified unit. It's a setter
method for
| |