nRF Connect SDK API 2.8.99
|
int(* bt_mesh_sensor_series::get) (struct bt_mesh_sensor_srv *srv, struct bt_mesh_sensor *sensor, struct bt_mesh_msg_ctx *ctx, uint32_t column_index, struct bt_mesh_sensor_value *value) |
Getter for the series values.
Should return the historical data for the latest sensor readings in the given column.
[in] | srv | Sensor server associated with sensor instance. |
[in] | sensor | Sensor pointer. |
[in] | ctx | Message context pointer, or NULL if this call didn't originate from a mesh message. |
[in] | column_index | The index of the requested sensor column. Index into the columns array for sensors with more than two channels. |
[out] | value | Sensor value response buffer. Holds the number of channels indicated by the sensor type. All channels must be filled. |