2019-01-07 07:16:47 +00:00
|
|
|
/* Bluetooth Mesh */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Intel Corporation
|
|
|
|
* Additional Copyright (c) 2018 Espressif Systems (Shanghai) PTE LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BLE_MESH_TEST_H_
|
|
|
|
#define _BLE_MESH_TEST_H_
|
|
|
|
|
2020-03-11 04:01:57 +00:00
|
|
|
#include "mesh_bearer_adapt.h"
|
2019-01-07 07:16:47 +00:00
|
|
|
|
2020-04-10 03:31:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-01-07 07:16:47 +00:00
|
|
|
int bt_mesh_test(void);
|
|
|
|
|
|
|
|
struct bt_mesh_device_network_info {
|
2020-12-07 09:03:11 +00:00
|
|
|
uint8_t net_key[16];
|
|
|
|
uint16_t net_idx;
|
|
|
|
uint8_t flags;
|
|
|
|
uint32_t iv_index;
|
|
|
|
uint16_t unicast_addr;
|
|
|
|
uint8_t dev_key[16];
|
|
|
|
uint8_t app_key[16];
|
|
|
|
uint16_t app_idx;
|
|
|
|
uint16_t group_addr;
|
2019-01-07 07:16:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int bt_mesh_device_auto_enter_network(struct bt_mesh_device_network_info *info);
|
|
|
|
|
2020-03-11 04:01:57 +00:00
|
|
|
/* Before trying to update the white list, users need to make sure that
|
|
|
|
* one of the following conditions is satisfied:
|
|
|
|
* 1. BLE scanning is disabled;
|
|
|
|
* 2. BLE scanning is enabled with scan filter policy disabled;
|
|
|
|
* If BLE scanning is enabled with scan filter policy enabled, users need
|
|
|
|
* to stop BLE scanning firstly, then the white list can be updated.
|
|
|
|
*/
|
|
|
|
int bt_mesh_test_update_white_list(struct bt_mesh_white_list *wl);
|
|
|
|
|
|
|
|
int bt_mesh_test_start_scanning(bool wl_en);
|
|
|
|
|
|
|
|
int bt_mesh_test_stop_scanning(void);
|
|
|
|
|
2020-04-10 03:31:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-01-07 07:16:47 +00:00
|
|
|
#endif /* _BLE_MESH_TEST_H_ */
|