nRF Connect SDK API 2.8.99
|
void(*const bt_mesh_plvl_srv_handlers::range_update) (struct bt_mesh_plvl_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_plvl_range *old_range, const struct bt_mesh_plvl_range *new_range) |
The Power Range state has changed.
The user may implement this handler to subscribe to change to the Power Range state. If the change in range causes the current Power state to be out of range, the Power state should be changed to the nearest value inside the range. It is recommended to call bt_mesh_plvl_srv_pub to notify the mesh if the Power state changes.
[in] | srv | Server the Power Range state was changed on. |
[in] | ctx | Context of the set message that triggered the update, or NULL if it was not triggered by a message. |
[in] | old_range | The Power Range before the change. |
[in] | new_range | The Power Range after the change. |