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

◆ bt_mesh_light_ctrl_srv_off()

int bt_mesh_light_ctrl_srv_off ( struct bt_mesh_light_ctrl_srv * srv)

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

Manually turn the light off.

Instructs the controlled Lightness Server to turn the light off (Standby state). Calling this function temporarily disables occupancy sensor triggering (referred to as "manual mode" in the documentation). The server will remain in manual mode until the manual mode timer expires, see

CONFIG_BT_MESH_LIGHT_CTRL_SRV_TIME_MANUAL 

.

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