Functions

void halOccupancyStateChangedCallback (HalOccupancyState occupancyState)
Occupancy State Changed.

Detailed Description

These callbacks are contributed by the Occupancy PYD-1698 plugin.

Function Documentation

void halOccupancyStateChangedCallback ( HalOccupancyState occupancyState )

This callback is called when the occupancy sensor state changes.

Parameters
occupancyState The bitmap used to determine occupancy state. At present, only bit 0 is used, and will be set to either HAL_OCCUPANCY_STATE_OCCUPIED or HAL_OCCUPANCY_STATE_UNOCCUPIED.