1 /* Bluetooth Mesh */ 2 3 /* 4 * Copyright (c) 2017 Intel Corporation 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #ifndef __PROV_H__ 10 #define __PROV_H__ 11 12 #include "os/os_mbuf.h" 13 #include "mesh/mesh.h" 14 #include "../src/ble_hs_conn_priv.h" 15 16 int bt_mesh_pb_adv_open(const u8_t uuid[16], u16_t net_idx, u16_t addr, 17 u8_t attention_duration); 18 19 void bt_mesh_pb_adv_recv(struct os_mbuf *buf); 20 21 bool bt_prov_active(void); 22 23 int bt_mesh_pb_gatt_open(uint16_t conn_handle); 24 int bt_mesh_pb_gatt_close(uint16_t conn_handle); 25 int bt_mesh_pb_gatt_recv(uint16_t conn_handle, struct os_mbuf *buf); 26 27 const struct bt_mesh_prov *bt_mesh_prov_get(void); 28 29 int bt_mesh_prov_init(const struct bt_mesh_prov *prov); 30 31 void bt_mesh_prov_reset_link(void); 32 33 void bt_mesh_prov_complete(u16_t net_idx, u16_t addr); 34 void bt_mesh_prov_node_added(u16_t net_idx, u16_t addr, u8_t num_elem); 35 void bt_mesh_prov_reset(void); 36 37 #endif 38