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

BLEHIDPeripheral setBondStore

Open llemtt opened this issue 7 years ago • 4 comments

Hi,

how can I correctly set the BondStore of a BLEHIDPeripheral?

If I call bleHIDPeripheral.setBondStore(...) the BLEPeripheral class method gets called which doesn't update the _bleBondStore private field. Calling bleHIDPeripheral.setup() then overrides my previous call...

Thanks

llemtt avatar Mar 15 '17 15:03 llemtt

@llemtt why do you need to override the BondStore?

sandeepmistry avatar Mar 26 '17 23:03 sandeepmistry

My current project runs on a BLE Nano and requires a different flash page for the BondStore because offset=0 overwrites the bootloader!

I managed this modifying the library source code, definitely not the right way to do it.

Besides that, if I understood correctly, setBondStore(...) purpose is to let the developer supply even a completely different store location like for instance an external eeprom.

llemtt avatar Mar 27 '17 09:03 llemtt

Oh got it, why don't we just change the default offset on the BLE Nano to be non-zero?

What do you think? Do you have time to submit a pull request?

sandeepmistry avatar Apr 09 '17 23:04 sandeepmistry

@llemtt ping ...

sandeepmistry avatar Apr 24 '17 01:04 sandeepmistry