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

◆ bt_mesh_ponoff_srv_set()

void bt_mesh_ponoff_srv_set ( struct bt_mesh_ponoff_srv srv,
enum bt_mesh_on_power_up  on_power_up 
)

#include <include/bluetooth/mesh/gen_ponoff_srv.h>

Set the OnPowerUp state of a Power OnOff server.

If an update handler is set, it'll be called with the updated OnPowerUp value. If publication is configured, the change will cause the server to publish.

Parameters
[in]srvServer to set the OnPowerUp state of.
[in]on_power_upNew OnPowerUp value.