Page 1 of 1

hardcode BLE mesh network keys

Posted: Wed Jul 13, 2022 1:10 pm
by luca.cbt
Hi,

For an application I'm building, I need to have all devices pre-provisioned for a given network.
However, I could not find any examples nor any hints in the code that suggest how to do that.
Thus, is there a way to hardcode the BLE mesh network key and the other provision-related parameters?

Luca

Re: hardcode BLE mesh network keys

Posted: Wed Jul 27, 2022 8:33 am
by TristanB
Hi Luca,

I am not sure you can do that in Mesh protocol.
The only idea I have is to provision all devices once at the very beginning (using regular method) and checking the "Store BLE mesh configuration persistently" in the menuconfig UI. Even after power down and resert, the provisionning config should be restored (I briefly tried that some weeks ago, I seems to be working)
I am also currently looking for such kind of features, but not found something better that this tricks. I you are finding something interesting, please update your topic :)

Tristan