nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
Generic OnOff Client model

API for the Generic OnOff Client model. More...

Data Structures

struct  bt_mesh_onoff_cli
 

Macros

#define BT_MESH_ONOFF_CLI_INIT(_status_handler)
 Initialization parameters for a Generic OnOff Client model instance.
 
#define BT_MESH_MODEL_ONOFF_CLI(_cli)
 Generic OnOff Client model composition data entry.
 

Functions

int bt_mesh_onoff_cli_get (struct bt_mesh_onoff_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_onoff_status *rsp)
 Get the status of the bound srv.
 
int bt_mesh_onoff_cli_set (struct bt_mesh_onoff_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_onoff_set *set, struct bt_mesh_onoff_status *rsp)
 Set the OnOff state in the srv.
 
int bt_mesh_onoff_cli_set_unack (struct bt_mesh_onoff_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_onoff_set *set)
 Set the OnOff state in the srv without requesting a response.
 

Detailed Description

API for the Generic OnOff Client model.