Bluetooth: Mesh: Add support for sending Get Composition Data

Add Get Composition Data support to the Configuration Client Model.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-11-12 17:47:00 +02:00 committed by Johan Hedberg
commit 3d1ce43eb0
4 changed files with 122 additions and 1 deletions

View file

@ -18,7 +18,12 @@
*/
/** Mesh Configuration Client Model Context */
struct bt_mesh_cli {
struct bt_mesh_cfg_cli {
struct bt_mesh_model *model;
struct k_sem op_sync;
u32_t op_pending;
void *op_param;
};
extern const struct bt_mesh_model_op bt_mesh_cfg_cli_op[];
@ -27,6 +32,9 @@ extern const struct bt_mesh_model_op bt_mesh_cfg_cli_op[];
BT_MESH_MODEL(BT_MESH_MODEL_ID_CFG_CLI, \
bt_mesh_cfg_cli_op, NULL, cli_data)
int bt_mesh_cfg_comp_data_get(u16_t net_idx, u16_t addr, u8_t page,
u8_t *status, struct net_buf_simple *comp);
/**
* @}
*/