NordicSemiconductor / ble-sdk-arduino

MIT License
249 stars 97 forks source link

Size of Dynamic data: comment is incorrect #23

Open daviddedwin opened 8 years ago

daviddedwin commented 8 years ago

The size of the dynamic data stated in the comment in the bond_data_readstore in the HID* examples and the ble_proximity_template example is incorrect. This is due to an nRFgo studio bug that generates the size incorrectly, the size stated in the nRFgo Studio generated txt file is too small.. At this point the DynamicData must be read out and then its size noted and used for sizing the storage.

https://github.com/NordicSemiconductor/ble-sdk-arduino/blob/master/libraries/BLE/examples/ble_HID_keyboard_template/ble_HID_keyboard_template.ino#L302

https://github.com/NordicSemiconductor/ble-sdk-arduino/blob/master/libraries/BLE/examples/ble_proximity_template/ble_proximity_template.ino#L237