nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Light Lightness Control Server

Light Lightness Control Server model API. More...

Data Structures

struct  bt_mesh_light_ctrl_srv_cfg
 
struct  bt_mesh_light_ctrl_srv
 Light Lightness Control Server instance. More...
 

Macros

#define BT_MESH_LIGHT_CTRL_SRV_INIT_WITH_REG(_lightness_srv, _reg)
 Initialization parameters for Light Lightness Control Server with custom regulator.
 
#define BT_MESH_LIGHT_CTRL_SRV_INIT(_lightness_srv)
 Initialization parameters for Light Lightness Control Server.
 
#define BT_MESH_MODEL_LIGHT_CTRL_SRV(_srv)
 Light Lightness Control Server model composition data entry.
 

Enumerations

enum  bt_mesh_light_ctrl_srv_state { LIGHT_CTRL_STATE_STANDBY , LIGHT_CTRL_STATE_ON , LIGHT_CTRL_STATE_PROLONG , LIGHT_CTRL_STATE_COUNT }
 

Functions

int bt_mesh_light_ctrl_srv_on (struct bt_mesh_light_ctrl_srv *srv)
 Turn the light on.
 
int bt_mesh_light_ctrl_srv_off (struct bt_mesh_light_ctrl_srv *srv)
 Manually turn the light off.
 
int bt_mesh_light_ctrl_srv_enable (struct bt_mesh_light_ctrl_srv *srv)
 Enable the Light Lightness Control Server.
 
int bt_mesh_light_ctrl_srv_disable (struct bt_mesh_light_ctrl_srv *srv)
 Disable the Light Lightness Control Server.
 
bool bt_mesh_light_ctrl_srv_is_on (struct bt_mesh_light_ctrl_srv *srv)
 Check if the Light Lightness Control Server has turned the light on.
 
int bt_mesh_light_ctrl_srv_pub (struct bt_mesh_light_ctrl_srv *srv, struct bt_mesh_msg_ctx *ctx)
 Publish the current OnOff state.
 

Detailed Description

Light Lightness Control Server model API.