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

◆ bt_mesh_light_ctrl_srv_on()

int bt_mesh_light_ctrl_srv_on ( struct bt_mesh_light_ctrl_srv * srv)

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

Turn the light on.

Instructs the controlled Lightness Server to turn the light on. If the light was already on, the dimming timeout is reset. If the light was in the Prolong state, it is moved back into the On state.

Parameters
[in]srvLight Lightness Control Server instance.
Return values
0The Light Lightness Control Server was successfully turned on.
-EBUSYThe Light Lightness Control Server is disabled.