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

◆ set

int(* bt_mesh_sensor_setting::set) (struct bt_mesh_sensor_srv *srv, struct bt_mesh_sensor *sensor, const struct bt_mesh_sensor_setting *setting, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_value *value)

Setter for this sensor setting.

Should only be specified for writable sensor settings.

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.
[in]valueNew setting value. Contains the number of channels specified by the setting sensor type.
Returns
0 on success, or (negative) error code otherwise.