2021-12-22 01:31:53 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2019-01-07 07:16:47 +00:00
|
|
|
|
2020-05-13 09:45:10 +00:00
|
|
|
#ifndef _BLE_MESH_FAST_PROV_CLIENT_MODEL_H_
|
|
|
|
#define _BLE_MESH_FAST_PROV_CLIENT_MODEL_H_
|
2019-01-07 07:16:47 +00:00
|
|
|
|
|
|
|
#include "esp_ble_mesh_defs.h"
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SEND_SELF_PROV_NODE_ADDR_START, /* Flag indicates the timer used to send self-provisioned node addresses has been started */
|
|
|
|
CLI_MAX_FLAGS,
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SEND_SELF_PROV_NODE_ADDR_TIMEOUT K_SECONDS(5)
|
|
|
|
|
|
|
|
void example_send_self_prov_node_addr(struct k_work *work);
|
|
|
|
|
|
|
|
esp_err_t example_fast_prov_client_recv_timeout(uint32_t opcode, esp_ble_mesh_model_t *model,
|
|
|
|
esp_ble_mesh_msg_ctx_t *ctx);
|
|
|
|
|
|
|
|
esp_err_t example_fast_prov_client_recv_status(esp_ble_mesh_model_t *model,
|
|
|
|
esp_ble_mesh_msg_ctx_t *ctx,
|
|
|
|
uint16_t len, const uint8_t *data);
|
|
|
|
|
2020-11-10 07:40:01 +00:00
|
|
|
#endif /* _BLE_MESH_FAST_PROV_CLIENT_MODEL_H_ */
|