Closed Quiscale closed 5 years ago
Hi Quiscale, Note: bt_mesh_proxy_init, Device UUID is not initialized
The cause of the error is that the device's uuid is not initialized.
You need to initialize the uuid variable in `esp_ble_mesh_prov_t` .
You can refer to the `ble_mesh_node` demo.
Hi WCCWCC,
Yes I found my error not a long time ago, I don't know why but to solve my problem I did as you said it : That was my code :
static esp_ble_mesh_prov_t mesh_provision_prov = {
.prov_uuid = MESH_uuid,
.prov_unicast_addr = 0x0001,
.prov_start_address = 0x0005,
.prov_attention = 0x00,
.prov_algorithm = 0x00,
.prov_pub_key_oob = 0x00,
.prov_static_oob_val = NULL,
.prov_static_oob_len = 0x00,
.flags = 0x00,
.iv_index = 0x00,
};
And now It looks like :
static esp_ble_mesh_prov_t mesh_provision_prov = {
.uuid = MESH_uuid,
.output_size = 0,
.output_actions = 0,
.prov_uuid = MESH_uuid,
.prov_unicast_addr = 0x0001,
.prov_start_address = 0x0005,
.prov_attention = 0x00,
.prov_algorithm = 0x00,
.prov_pub_key_oob = 0x00,
.prov_static_oob_val = NULL,
.prov_static_oob_len = 0x00,
.flags = 0x00,
.iv_index = 0x00,
};
And it works, so I need to register twice the uuid
Environment
Problem Description
I am currently trying to use the BLE Mesh API to create a game, and I will have until 16 devices to connect, each device has one button and one RGB led. I want the devices to start as node(unprovisioned) and if push the button of one, it will become a provisioner and provision the 15 devices left. So the problems is :
Expected Behavior
Actual Behavior
The program is still running after the error, but only reproduce the watchdog reset
Steps to repropduce
Question