test
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: ble/services/BatteryService.h
- Revision:
- 1209:fea0f4bebbbf
- Parent:
- 728:997ba5e7b3b6
--- 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 *));