nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ sensor

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.

Parameters
deviceEnOcean device generating the message.
dataSensor data.
opt_dataOptional data array from the message, or NULL.
opt_data_lenLength of the optional data.