Improve readability with getHandle inline
Fork of BLE_API by
Diff: services/URIBeacon2Service.h
- Revision:
- 153:424ca18dd5f0
- Parent:
- 152:fc0bb2ba916b
- Child:
- 154:ab86251a3ffb
--- a/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 +++ b/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 @@ -130,25 +130,6 @@ return encodedBytes; } - // URIBeacon2Service(BLEDevice &_ble, uint8_t level = 100) : - // ble(_ble), - // batteryLevel(level), - // batteryLevelCharacteristic(GattCharacteristic::UUID_BATTERY_LEVEL_CHAR, &batteryLevel, sizeof(batteryLevel), sizeof(batteryLevel), - // GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY) { - - // static bool serviceAdded = false; /* We should only ever need to add the heart rate service once. */ - // if (serviceAdded) { - // return; - // } - - // GattCharacteristic *charTable[] = {&batteryLevelCharacteristic}; - // GattService batteryService(GattService::UUID_BATTERY_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); - - // ble.addService(batteryService); - // serviceAdded = true; - // } - // - private: static const size_t MAX_SIZEOF_PAYLOAD = 32; /* TODO */