ble mesh: combine node and provisioner
Posted: Fri Jul 08, 2022 7:53 am
Hi everyone,
I would like to create a device on ESP32 that can dynamically switch between provisioner role and a simple to-be-provisioned node (depending on various external working conditions).
I tried combining the code from the sensor cli/srv example, activating both CONFIG_BLE_MESH_NODE and CONFIG_BLE_MESH_PROVISIONER flags (and also the other related flags), but, after flashing the device, the code panics and reboots continuously.
I also tried merging the fast provisioning example server and client. The merged application works as client, but not as provisioner (it can only provision the first client, then it stops working).
So, I'm wondering: is it possible to create an application that implements both node and provisioner roles?
And how?
Thanks,
Luca
I would like to create a device on ESP32 that can dynamically switch between provisioner role and a simple to-be-provisioned node (depending on various external working conditions).
I tried combining the code from the sensor cli/srv example, activating both CONFIG_BLE_MESH_NODE and CONFIG_BLE_MESH_PROVISIONER flags (and also the other related flags), but, after flashing the device, the code panics and reboots continuously.
I also tried merging the fast provisioning example server and client. The merged application works as client, but not as provisioner (it can only provision the first client, then it stops working).
So, I'm wondering: is it possible to create an application that implements both node and provisioner roles?
And how?
Thanks,
Luca