-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Hi all.
In the last couple of days my Team and I are attempting to use the BT-Mesh-Settings API, with our current implementation being based on self-provisioning and self-configuring (We have our reasons). After a bit of grappling, we found out the updated mesh_demo (We've had an offline copy of v1.12) which does exactly what we've been looking after.
However, the problem is it doesn't work for us as expected.
The Node's address, or more specifically, the Primary Element's address (As we don't have any more for now) is not restored upon a power-cycle, leading to error -49:EADDRNOTAVAIL when publishing data using a publication context/model.
Since we're self-provisioning, we could "overcome" this issue by manually calling the bt_mesh_comp_provision function, which from our understanding should assign the address - But it's an ugly solution and wouldn't work for prod-ready provisioning.
Now the question is - Is the address not restored on purpose? It seems rather foolish to restore settings on boot after a system reset of some kind just to wait for the node to be re-provisioned, isn't it?
If it's not, I'm afraid this is some kind of bug, or perhaps, we're using it wrong? @jhedberg