extend
Fork of BLE_API by
Diff: public/GattService.h
- Revision:
- 330:2a3f554ee9fd
- Parent:
- 260:ea7f9f14cc15
--- a/public/GattService.h Wed Apr 15 09:05:10 2015 +0100 +++ b/public/GattService.h Wed Apr 15 09:05:10 2015 +0100 @@ -57,7 +57,10 @@ * @param[in] numCharacteristics * The number of characteristics */ - GattService(const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics); + GattService(const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics) : + _primaryServiceID(uuid), _characteristicCount(numCharacteristics), _characteristics(characteristics), _handle(0) { + /* empty */ + } const UUID &getUUID(void) const {return _primaryServiceID; } uint16_t getHandle(void) const {return _handle; }