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

◆ update

void(*const bt_mesh_ponoff_srv::update) (struct bt_mesh_ponoff_srv *srv, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_on_power_up old_on_power_up, enum bt_mesh_on_power_up new_on_power_up)

Update handler.

Called every time there's a change to the OnPowerUp state.

Parameters
[in]srvServer instance that was updated
[in]ctxContext of the set message that triggered the update, or NULL if it was not triggered by a message.
[in]old_on_power_upThe previous OnPowerUp value.
[in]new_on_power_upThe new OnPowerUp value.