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

Light Lightness Control Client model API. More...

Data Structures

struct  bt_mesh_light_ctrl_cli_handlers
 
struct  bt_mesh_light_ctrl_cli
 Light Lightness Control Client instance. More...
 

Macros

#define BT_MESH_LIGHT_CTRL_CLI_INIT(_handlers)
 Initialization parameters for the Light Lightness Control Client.
 
#define BT_MESH_MODEL_LIGHT_CTRL_CLI(_cli)
 Light Lightness Control Client model composition data entry.
 

Functions

int bt_mesh_light_ctrl_cli_mode_get (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool *rsp)
 Get a Light Lightness Control Server's current Mode.
 
int bt_mesh_light_ctrl_cli_mode_set (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool enabled, bool *rsp)
 Set a Light Lightness Control Server's current Mode.
 
int bt_mesh_light_ctrl_cli_mode_set_unack (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool enabled)
 Set a Light Lightness Control Server's current Mode without requesting a response.
 
int bt_mesh_light_ctrl_cli_occupancy_enabled_get (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool *rsp)
 Get a Light Lightness Control Server's current Occupancy Mode.
 
int bt_mesh_light_ctrl_cli_occupancy_enabled_set (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool enabled, bool *rsp)
 Set a Light Lightness Control Server's current Occupancy Mode.
 
int bt_mesh_light_ctrl_cli_occupancy_enabled_set_unack (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, bool enabled)
 Set a Light Lightness Control Server's current Occupancy Mode without requesting a response.
 
int bt_mesh_light_ctrl_cli_light_onoff_get (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_onoff_status *rsp)
 Get a Light Lightness Control Server's current OnOff state.
 
int bt_mesh_light_ctrl_cli_light_onoff_set (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_onoff_set *set, struct bt_mesh_onoff_status *rsp)
 Tell a Light Lightness Control Server to turn the light on or off.
 
int bt_mesh_light_ctrl_cli_light_onoff_set_unack (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_onoff_set *set)
 Tell a Light Lightness Control Server to turn the light on or off without requesting a response.
 
int bt_mesh_light_ctrl_cli_prop_get (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_prop id, struct bt_mesh_sensor_value *rsp)
 Get a Light Lightness Control Server property value.
 
int bt_mesh_light_ctrl_cli_prop_set (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_prop id, const struct bt_mesh_sensor_value *val, struct bt_mesh_sensor_value *rsp)
 Set a Light Lightness Control Server property value.
 
int bt_mesh_light_ctrl_cli_prop_set_unack (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_prop id, const struct bt_mesh_sensor_value *val)
 Set a Light Lightness Control Server property value without requesting a response.
 
int bt_mesh_light_ctrl_cli_coeff_get (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_coeff id, float *rsp)
 Get a Light Lightness Control Server Regulator Coefficient value.
 
int bt_mesh_light_ctrl_cli_coeff_set (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_coeff id, float val, float *rsp)
 Set a Light Lightness Control Server Regulator Coefficient value.
 
int bt_mesh_light_ctrl_cli_coeff_set_unack (struct bt_mesh_light_ctrl_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_light_ctrl_coeff id, float val)
 Set a Light Lightness Control Server Regulator Coefficient value without requesting a response.
 

Detailed Description

Light Lightness Control Client model API.