Select one of the symbols to view example projects that use it.
 
Outline
#define _PVNR_MGMT_H_
#include "net.h"
#include "mesh/adapter.h"
#define BLE_MESH_INVALID_NODE_INDEX
#define BLE_MESH_NODE_NAME_SIZE
bt_mesh_node
bt_mesh_provisioner_init();
bt_mesh_provisioner_net_create();
bt_mesh_provisioner_main_reset(bool);
bt_mesh_provisioner_deinit(bool);
bt_mesh_provisioner_check_is_addr_dup(uint16_t, uint8_t, bool);
bt_mesh_provisioner_get_node_count();
bt_mesh_provisioner_restore_node_info(struct bt_mesh_node *);
bt_mesh_provisioner_provision(const bt_mesh_addr_t *, const uint8_t *, uint16_t, uint16_t, uint8_t, uint16_t, uint8_t, uint32_t, const uint8_t *, uint16_t *, bool);
bt_mesh_provisioner_remove_node(const uint8_t *);
bt_mesh_provisioner_restore_node_name(uint16_t, const char *);
bt_mesh_provisioner_restore_node_comp_data(uint16_t, const uint8_t *, uint16_t);
bt_mesh_provisioner_get_node_with_uuid(const uint8_t *);
bt_mesh_provisioner_get_node_with_addr(uint16_t);
bt_mesh_provisioner_delete_node_with_uuid(const uint8_t *);
bt_mesh_provisioner_delete_node_with_node_addr(uint16_t);
bt_mesh_provisioner_delete_node_with_dev_addr(const bt_mesh_addr_t *);
bt_mesh_provisioner_set_node_name(uint16_t, const char *);
bt_mesh_provisioner_get_node_name(uint16_t);
bt_mesh_provisioner_get_node_index(const char *);
bt_mesh_provisioner_get_node_with_name(const char *);
bt_mesh_provisioner_get_node_table_entry();
bt_mesh_provisioner_store_node_comp_data(uint16_t, const uint8_t *, uint16_t);
bt_mesh_provisioner_net_key_get(uint16_t);
bt_mesh_provisioner_check_msg_dst(uint16_t);
bt_mesh_provisioner_dev_key_get(uint16_t);
bt_mesh_provisioner_local_app_key_add(const uint8_t *, uint16_t, uint16_t *);
bt_mesh_provisioner_local_app_key_update(const uint8_t *, uint16_t, uint16_t);
bt_mesh_provisioner_local_app_key_get(uint16_t, uint16_t);
bt_mesh_provisioner_local_app_key_del(uint16_t, uint16_t, bool);
bt_mesh_provisioner_local_net_key_add(const uint8_t *, uint16_t *);
bt_mesh_provisioner_local_net_key_update(const uint8_t *, uint16_t);
bt_mesh_provisioner_local_net_key_del(uint16_t, bool);
bt_mesh_provisioner_bind_local_model_app_idx(uint16_t, uint16_t, uint16_t, uint16_t);
bt_mesh_provisioner_store_node_info(struct bt_mesh_node *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/esp_ble_mesh/core/pvnr_mgmt.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef _PVNR_MGMT_H_ #define _PVNR_MGMT_H_ #include "net.h" #include "mesh/adapter.h" #ifdef __cplusplus extern "C" { #endif #define BLE_MESH_INVALID_NODE_INDEX 0xFFFF #define BLE_MESH_NODE_NAME_SIZE 31 /* Each node information stored by provisioner */ struct bt_mesh_node { /* Device information */ uint8_t addr[6]; /* Node device address */ uint8_t addr_type; /* Node device address type */ uint8_t dev_uuid[16]; /* Node Device UUID */ uint16_t oob_info; /* Node OOB information */ /* Provisioning information */ uint16_t unicast_addr; /* Node unicast address */ uint8_t element_num; /* Node element number */ uint16_t net_idx; /* Node NetKey Index */ uint8_t flags; /* Node key refresh flag and iv update flag */ uint32_t iv_index; /* Node IV Index */ uint8_t dev_key[16]; /* Node device key */ /* Additional information */ char name[BLE_MESH_NODE_NAME_SIZE + 1]; /* Node name */ uint16_t comp_length; /* Length of Composition Data */ uint8_t *comp_data; /* Value of Composition Data */ }{ ... } __attribute__((packed)); int bt_mesh_provisioner_init(void); int bt_mesh_provisioner_net_create(void); void bt_mesh_provisioner_main_reset(bool erase); int bt_mesh_provisioner_deinit(bool erase); bool bt_mesh_provisioner_check_is_addr_dup(uint16_t addr, uint8_t elem_num, bool comp_with_own); uint16_t bt_mesh_provisioner_get_node_count(void); int bt_mesh_provisioner_restore_node_info(struct bt_mesh_node *node); int bt_mesh_provisioner_provision(const bt_mesh_addr_t *addr, const uint8_t uuid[16], uint16_t oob_info, uint16_t unicast_addr, uint8_t element_num, uint16_t net_idx, uint8_t flags, uint32_t iv_index, const uint8_t dev_key[16], uint16_t *index, bool nppi); int bt_mesh_provisioner_remove_node(const uint8_t uuid[16]); int bt_mesh_provisioner_restore_node_name(uint16_t addr, const char *name); int bt_mesh_provisioner_restore_node_comp_data(uint16_t addr, const uint8_t *data, uint16_t length); struct bt_mesh_node *bt_mesh_provisioner_get_node_with_uuid(const uint8_t uuid[16]); struct bt_mesh_node *bt_mesh_provisioner_get_node_with_addr(uint16_t unicast_addr); int bt_mesh_provisioner_delete_node_with_uuid(const uint8_t uuid[16]); int bt_mesh_provisioner_delete_node_with_node_addr(uint16_t unicast_addr); int bt_mesh_provisioner_delete_node_with_dev_addr(const bt_mesh_addr_t *addr); int bt_mesh_provisioner_set_node_name(uint16_t index, const char *name); const char *bt_mesh_provisioner_get_node_name(uint16_t index); uint16_t bt_mesh_provisioner_get_node_index(const char *name); struct bt_mesh_node *bt_mesh_provisioner_get_node_with_name(const char *name); const struct bt_mesh_node **bt_mesh_provisioner_get_node_table_entry(void); int bt_mesh_provisioner_store_node_comp_data(uint16_t addr, const uint8_t *data, uint16_t length); const uint8_t *bt_mesh_provisioner_net_key_get(uint16_t net_idx); bool bt_mesh_provisioner_check_msg_dst(uint16_t dst); const uint8_t *bt_mesh_provisioner_dev_key_get(uint16_t addr); int bt_mesh_provisioner_local_app_key_add(const uint8_t app_key[16], uint16_t net_idx, uint16_t *app_idx); int bt_mesh_provisioner_local_app_key_update(const uint8_t app_key[16], uint16_t net_idx, uint16_t app_idx); const uint8_t *bt_mesh_provisioner_local_app_key_get(uint16_t net_idx, uint16_t app_idx); int bt_mesh_provisioner_local_app_key_del(uint16_t net_idx, uint16_t app_idx, bool store); int bt_mesh_provisioner_local_net_key_add(const uint8_t net_key[16], uint16_t *net_idx); int bt_mesh_provisioner_local_net_key_update(const uint8_t net_key[16], uint16_t net_idx); int bt_mesh_provisioner_local_net_key_del(uint16_t net_idx, bool store); /* Provisioner bind local client model with proper appkey index */ int bt_mesh_provisioner_bind_local_model_app_idx(uint16_t elem_addr, uint16_t mod_id, uint16_t cid, uint16_t app_idx); int bt_mesh_provisioner_store_node_info(struct bt_mesh_node *node); #ifdef __cplusplus }{...} #endif /* ... */ #endif /* _PVNR_MGMT_H_ */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.