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

◆ get

void(* bt_mesh_sensor_setting::get) (struct bt_mesh_sensor_srv *srv, struct bt_mesh_sensor *sensor, const struct bt_mesh_sensor_setting *setting, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_sensor_value *rsp)

Getter for this sensor setting.

Note
This handler is mandatory.
Parameters
[in]srvSensor server instance associated with this setting.
[in]sensorSensor this setting belongs to.
[in]settingPointer to this setting structure.
[in]ctxContext parameters for the packet this call originated from, or NULL if this call wasn't triggered by a packet.
[out]rspResponse buffer for the setting value. Points to an array with the number of channels specified by the setting sensor type. All channels must be filled.