kopia lustrzana https://github.com/espressif/esp-idf
42 wiersze
1.1 KiB
C
42 wiersze
1.1 KiB
C
/* Bluetooth Mesh */
|
|
|
|
/*
|
|
* Copyright (c) 2017 Intel Corporation
|
|
* Additional Copyright (c) 2020 Espressif Systems (Shanghai) PTE LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _LOCAL_OPERATION_H_
|
|
#define _LOCAL_OPERATION_H_
|
|
|
|
#include "mesh_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int bt_mesh_model_subscribe_group_addr(u16_t elem_addr, u16_t mod_id,
|
|
u16_t cid, u16_t group_addr);
|
|
|
|
int bt_mesh_model_unsubscribe_group_addr(u16_t elem_addr, u16_t cid,
|
|
u16_t mod_id, u16_t group_addr);
|
|
|
|
const u8_t *bt_mesh_node_get_local_net_key(u16_t net_idx);
|
|
|
|
const u8_t *bt_mesh_node_get_local_app_key(u16_t app_idx);
|
|
|
|
int bt_mesh_node_local_net_key_add(u16_t net_idx, const u8_t net_key[16]);
|
|
|
|
int bt_mesh_node_local_app_key_add(u16_t net_idx, u16_t app_idx,
|
|
const u8_t app_key[16]);
|
|
|
|
int bt_mesh_node_bind_app_key_to_model(u16_t elem_addr, u16_t mod_id,
|
|
u16_t cid, u16_t app_idx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _LOCAL_OPERATION_H_ */
|