1 /* Bluetooth Mesh */ 2 3 /* 4 * SPDX-FileCopyrightText: 2017 Intel Corporation 5 * SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD 6 * 7 * SPDX-License-Identifier: Apache-2.0 8 */ 9 10 #ifndef _LOCAL_OPERATION_H_ 11 #define _LOCAL_OPERATION_H_ 12 13 #include "mesh_types.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 int bt_mesh_model_subscribe_group_addr(uint16_t elem_addr, uint16_t mod_id, 20 uint16_t cid, uint16_t group_addr); 21 22 int bt_mesh_model_unsubscribe_group_addr(uint16_t elem_addr, uint16_t cid, 23 uint16_t mod_id, uint16_t group_addr); 24 25 const uint8_t *bt_mesh_node_get_local_net_key(uint16_t net_idx); 26 27 const uint8_t *bt_mesh_node_get_local_app_key(uint16_t app_idx); 28 29 int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]); 30 31 int bt_mesh_node_local_app_key_add(uint16_t net_idx, uint16_t app_idx, 32 const uint8_t app_key[16]); 33 34 int bt_mesh_node_bind_app_key_to_model(uint16_t elem_addr, uint16_t mod_id, 35 uint16_t cid, uint16_t app_idx); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* _LOCAL_OPERATION_H_ */ 42