1 /* Bluetooth Mesh */ 2 3 /* 4 * Copyright (c) 2017 Intel Corporation 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #define BT_MESH_PROXY_NET_PDU 0x00 10 #define BT_MESH_PROXY_BEACON 0x01 11 #define BT_MESH_PROXY_CONFIG 0x02 12 #define BT_MESH_PROXY_PROV 0x03 13 14 int bt_mesh_proxy_send(struct bt_conn *conn, u8_t type, 15 struct net_buf_simple *msg); 16 17 int bt_mesh_proxy_prov_enable(void); 18 int bt_mesh_proxy_prov_disable(bool disconnect); 19 20 int bt_mesh_proxy_gatt_enable(void); 21 int bt_mesh_proxy_gatt_disable(void); 22 void bt_mesh_proxy_gatt_disconnect(void); 23 uint8_t is_proxy_connected(); 24 25 void bt_mesh_proxy_beacon_send(struct bt_mesh_subnet *sub); 26 27 struct net_buf_simple *bt_mesh_proxy_get_buf(void); 28 29 bt_s32_t bt_mesh_proxy_adv_start(void); 30 void bt_mesh_proxy_adv_stop(void); 31 32 void bt_mesh_proxy_identity_start(struct bt_mesh_subnet *sub); 33 void bt_mesh_proxy_identity_stop(struct bt_mesh_subnet *sub); 34 35 bool bt_mesh_proxy_relay(struct net_buf_simple *buf, u16_t dst); 36 void bt_mesh_proxy_addr_add(struct net_buf_simple *buf, u16_t addr); 37 38 int bt_mesh_proxy_init(void); 39