arduino-BLEPeripheral icon indicating copy to clipboard operation
arduino-BLEPeripheral copied to clipboard

Bondstore

Open suvodip1212 opened this issue 5 years ago • 6 comments

Could some private data be kept in flash using bondstore? I tried using the read command but failed to do so(for now). Any suggestions?

suvodip1212 avatar Sep 27 '18 16:09 suvodip1212

Also interested in doing this. I’ve already modified it to store IRK/LTK’s. So I think this would be simple enough to implement.

h2zero avatar Oct 12 '18 18:10 h2zero

Pls share an example. Maybe it will help?

suvodip1212 avatar Oct 17 '18 17:10 suvodip1212

Sure, when I get a few mins I'll make a fork and upload the code.

h2zero avatar Oct 17 '18 23:10 h2zero

So I made a fork but then I couldn’t find the code with the bond store changes... I must have overwritten it when I was moving files around :(.

I guess I’ll redo it and I might as well write some code to store arbitrary data as well.

Sorry for the delay.

h2zero avatar Oct 22 '18 14:10 h2zero

So I made a fork but then I couldn’t find the code with the bond store changes... I must have overwritten it when I was moving files around :(.

I guess I’ll redo it and I might as well write some code to store arbitrary data as well.

Sorry for the delay.

Hi! Can you share an example for storing that bond data in flash? Or can you give an example of how to write data in flash while the BLE is running?

dots123 avatar Dec 04 '20 16:12 dots123

Wow, so sorry, I completely forgot about this. What I ended up doing is just creating a second instance of bondstore and storing arbitrary data in it by just using bondstore::putData(). I had modified the code previously for other things and made another solution but ended up doing it this way instead.

h2zero avatar Dec 18 '20 13:12 h2zero