8 years, 9 months ago.

How to secure ReadWriteGattCharacteristic with mbed BLE

Hi, i want to create float ReadWriteGattCharacteristic that can be changed only for authenticated "user". I try to implement it using: ReadWriteGattCharacteristic<float> limit(MOISTURELIMIT_CHARACTERISTIC_UUID, &_Limit, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES);

This code made my program broken. I find some callbacks like: onSecuritySetupInitiated, onLinkSecured, onSecurityContextStored etc.

So, can anybody help me to implement this feature?

No ideas on this?

posted by Dmitry Suhamera 27 Jun 2015

1 Answer

8 years, 9 months ago.

refer to the use of requireSecurity() in https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_SecureHeartRate/file/715150f7f293/HeartRateSecService.h

could you please try out the demo for secure-heart-rate and verify that it works for your? And then you can modify accordingly.