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

◆ get

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.

Parameters
[in]srvSensor server associated with sensor instance.
[in]sensorSensor pointer.
[in]ctxMessage context pointer, or NULL if this call didn't originate from a mesh message.
[in]column_indexThe index of the requested sensor column. Index into the columns array for sensors with more than two channels.
[out]valueSensor value response buffer. Holds the number of channels indicated by the sensor type. All channels must be filled.
Returns
0 on success, or (negative) error code otherwise.