1
2
3
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
40
41
42
43
44
45
46
/* ... */
#ifndef _LOCAL_H_
#define _LOCAL_H_
#include "mesh/types.h"
#ifdef __cplusplus
extern "C" {
#endif
int bt_mesh_model_subscribe_group_addr(uint16_t elem_addr, uint16_t mod_id,
uint16_t cid, uint16_t group_addr);
int bt_mesh_model_unsubscribe_group_addr(uint16_t elem_addr, uint16_t cid,
uint16_t mod_id, uint16_t group_addr);
const uint8_t *bt_mesh_node_get_local_net_key(uint16_t net_idx);
const uint8_t *bt_mesh_node_get_local_app_key(uint16_t app_idx);
int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]);
int bt_mesh_node_local_app_key_add(uint16_t net_idx, uint16_t app_idx,
const uint8_t app_key[16]);
int bt_mesh_node_bind_app_key_to_model(uint16_t elem_addr, uint16_t mod_id,
uint16_t cid, uint16_t app_idx);
#if CONFIG_BLE_MESH_DF_SRV
int bt_mesh_enable_directed_forwarding(uint16_t net_idx, bool directed_forwarding,
bool directed_forwarding_relay);/* ... */
#endif
#ifdef __cplusplus
}{...}
#endif
/* ... */
#endif