High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: GattService.h
- Revision:
- 75:d08bdef22500
- Parent:
- 70:d6c0a4cedf46
- Child:
- 91:311bde45b251
--- a/GattService.h Fri Jun 06 11:30:56 2014 +0100 +++ b/GattService.h Fri Jun 06 14:14:46 2014 +0100 @@ -37,7 +37,7 @@ GattService(UUID uuid); virtual ~GattService(void); - ble_error_t addCharacteristic(GattCharacteristic &); + ble_error_t addCharacteristic(GattCharacteristic &); enum { UUID_ALERT_NOTIFICATION_SERVICE = 0x1811, @@ -76,6 +76,7 @@ if (index >= characteristicCount) { return NULL; } + return characteristics[index]; }