ble_mesh: Add temporary Provisioner get restored node info api

This commit is contained in:
lly
2019-12-18 14:00:47 +08:00
parent a3287a7ad2
commit 88be97dfe8
2 changed files with 14 additions and 0 deletions

View File

@@ -647,6 +647,16 @@ struct bt_mesh_node_t *bt_mesh_provisioner_get_node_info(u16_t unicast_addr)
return NULL;
}
struct bt_mesh_node_t *bt_mesh_provisioner_get_node_entry(void)
{
return mesh_nodes[0];
}
u16_t bt_mesh_provisioner_get_node_count(void)
{
return prov_node_count;
}
u32_t bt_mesh_provisioner_get_net_key_count(void)
{
return ARRAY_SIZE(bt_mesh.p_sub);

View File

@@ -80,6 +80,10 @@ int bt_mesh_provisioner_get_node_index(const char *name);
struct bt_mesh_node_t *bt_mesh_provisioner_get_node_info(u16_t unicast_addr);
struct bt_mesh_node_t *bt_mesh_provisioner_get_node_entry(void);
u16_t bt_mesh_provisioner_get_node_count(void);
u32_t bt_mesh_provisioner_get_net_key_count(void);
u32_t bt_mesh_provisioner_get_app_key_count(void);