nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Generic Power Level Client model

API for the Generic Power Level Client model. More...

Data Structures

struct  bt_mesh_plvl_cli_handlers
 
struct  bt_mesh_plvl_cli
 

Macros

#define BT_MESH_PLVL_CLI_INIT(_handlers)
 Initialization parameters for the Generic Power Level Client model.
 
#define BT_MESH_MODEL_PLVL_CLI(_cli)
 Generic Power Level Client model composition data entry.
 

Functions

int bt_mesh_plvl_cli_power_get (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_plvl_status *rsp)
 Get the Power Level of the bound server.
 
int bt_mesh_plvl_cli_power_set (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_plvl_set *set, struct bt_mesh_plvl_status *rsp)
 Set the Power Level of the server.
 
int bt_mesh_plvl_cli_power_set_unack (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_plvl_set *set)
 Set the Power Level of the server without requesting a response.
 
int bt_mesh_plvl_cli_range_get (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_plvl_range_status *rsp)
 Get the Power Range of the bound server.
 
int bt_mesh_plvl_cli_range_set (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_plvl_range *range, struct bt_mesh_plvl_range_status *rsp)
 Set the Power Range state in the server.
 
int bt_mesh_plvl_cli_range_set_unack (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_plvl_range *range)
 Set the Power Range state in the server without requesting a response.
 
int bt_mesh_plvl_cli_default_get (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, uint16_t *rsp)
 Get the Default Power of the bound server.
 
int bt_mesh_plvl_cli_default_set (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, uint16_t default_power, uint16_t *rsp)
 Set the Default Power state in the server.
 
int bt_mesh_plvl_cli_default_set_unack (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, uint16_t default_power)
 Set the Default Power state in the server without requesting a response.
 
int bt_mesh_plvl_cli_last_get (struct bt_mesh_plvl_cli *cli, struct bt_mesh_msg_ctx *ctx, uint16_t *rsp)
 Get the last non-zero Power Level of the bound server.
 

Detailed Description

API for the Generic Power Level Client model.