bluerange-io / bluerange-mesh

BlueRange Mesh (formerly FruityMesh) - The first completely connection-based open source mesh on top of Bluetooth Low Energy (4.1/5.0 or higher)
https://bluerange.io/
Other
288 stars 109 forks source link

Unable to save/reload bonded data #195

Closed PriyeshNema closed 2 years ago

PriyeshNema commented 2 years ago

Hi,

I have a peripheral device which only sends data if it is paired. I have enabled pairing+bonding in FruityMesh device and I'm able to pair to the peripheral. As I reboot FruityMesh device, ideally the bond data should get reloaded, but inturn, it again starts to ask the pairing key with peripheral device again.

This did not happen if I just use nRF SDK (same version as FM) with my code. It's happeing only when FruityMesh code is integrated

Can someone help me resolve this

mariusheil commented 2 years ago

Hi, in order to store the bond data, you probably needed to integrate a library which stores and loads this information, correct? For this library, you also need to choose a proper place on where to store it. I imagine this could be because the FruityDeploy flash library also listens for Flash Events. There are no proper handles in the SoftDevice that would allow two libraries like this to work along as they do not know which flash event is related to which action. We do not currently support this and I think you would need to store the bond using our library or remove the flash storage from our code. Then you should probably get bonding to work but you'll need to use the nordic libraries to store and retrieve data.

Marius

mariusheil commented 2 years ago

Hi, I am closing this for now due to inactivity, feel free to re-open it.