GPIO Sensor Interface Callbacks#
These callbacks are contributed by the GPIO Sensor Interface plugin.
Functions#
void
emberAfPluginGpioSensorStateChangedCallback(uint8_t newSensorState)
Called whenever the GPIO sensor detects a change in state.
Function Documentation#
emberAfPluginGpioSensorStateChangedCallback#
void emberAfPluginGpioSensorStateChangedCallback (uint8_t newSensorState)
Called whenever the GPIO sensor detects a change in state.
Parameters
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| uint8_t | N/A | newSensorState | The new state of the sensor based alarm (EMBER_AF_PLUGIN_GPIO_SENSOR_ACTIVE or EMBER_AF_PLUGIN_GPIO_SENSOR_NOT_ACTIVE) Ver.: always |