test
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Revision 1209:fea0f4bebbbf, committed 2017-10-04
- Comitter:
- levkovigor
- Date:
- Wed Oct 04 13:26:34 2017 +0000
- Parent:
- 833:d494ad3e87bd
- Commit message:
- ble HayFaradey
Changed in this revision
ble/services/BatteryService.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r d494ad3e87bd -r fea0f4bebbbf ble/services/BatteryService.h --- a/ble/services/BatteryService.h Tue Sep 29 09:54:19 2015 +0100 +++ b/ble/services/BatteryService.h Wed Oct 04 13:26:34 2017 +0000 @@ -37,7 +37,7 @@ ble(_ble), batteryLevel(level), batteryLevelCharacteristic(GattCharacteristic::UUID_BATTERY_LEVEL_CHAR, &batteryLevel, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY) { - + batteryLevelCharacteristic.requireSecurity(SecurityManager::SECURITY_MODE_ENCRYPTION_WITH_MITM); GattCharacteristic *charTable[] = {&batteryLevelCharacteristic}; GattService batteryService(GattService::UUID_BATTERY_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));