test
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: public/ServiceDiscovery.h
- Revision:
- 459:a83b41d87755
- Parent:
- 458:5546ebd25359
- Child:
- 460:f5468aee162d
--- a/public/ServiceDiscovery.h Fri Jun 19 15:51:58 2015 +0100 +++ b/public/ServiceDiscovery.h Fri Jun 19 15:51:58 2015 +0100 @@ -28,15 +28,15 @@ */ class DiscoveredService { public: - void setup(UUID::ShortUUIDBytes_t uuidIn, GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn) { + void setup(UUID uuidIn, GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn) { uuid = uuidIn; startHandle = startHandleIn; endHandle = endHandleIn; } public: - const UUID::ShortUUIDBytes_t& getShortUUID(void) const { - return uuid; + UUID::ShortUUIDBytes_t getShortUUID(void) const { + return uuid.getShortUUID(); } const GattAttribute::Handle_t& getStartHandle(void) const { @@ -47,7 +47,7 @@ } public: - DiscoveredService() : uuid(0), startHandle(GattAttribute::INVALID_HANDLE), endHandle(GattAttribute::INVALID_HANDLE) { + DiscoveredService() : uuid(UUID::ShortUUIDBytes_t(0)), startHandle(GattAttribute::INVALID_HANDLE), endHandle(GattAttribute::INVALID_HANDLE) { /* empty */ } @@ -55,7 +55,7 @@ DiscoveredService(const DiscoveredService &); private: - UUID::ShortUUIDBytes_t uuid; /**< UUID of the service. */ + UUID uuid; /**< UUID of the service. */ GattAttribute::Handle_t startHandle; /**< Service Handle Range. */ GattAttribute::Handle_t endHandle; /**< Service Handle Range. */ };