nRF Connect SDK API 0.1.0
|
void(* bt_enocean_callbacks::sensor) (struct bt_enocean_device *device, const struct bt_enocean_sensor_data *data, const uint8_t *opt_data, size_t opt_data_len) |
Callback for EnOcean Sensor reports.
This callback is called for every new sensor message from a commissioned EnOcean Switch.
The data
parameter contains a set of optional fields, represented as pointers. Unknown fields are NULL pointers, and must be ignored.
device | EnOcean device generating the message. |
data | Sensor data. |
opt_data | Optional data array from the message, or NULL. |
opt_data_len | Length of the optional data. |