From b2c77f035182a1d3b6b219d02c00d887377e8860 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 20 May 2015 10:59:42 +0100 Subject: [PATCH] should use GattAttribute::Handle_t --- public/ServiceDiscovery.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/public/ServiceDiscovery.h b/public/ServiceDiscovery.h index d341c48..bee8fbd 100644 --- a/public/ServiceDiscovery.h +++ b/public/ServiceDiscovery.h @@ -19,6 +19,7 @@ #include "UUID.h" #include "Gap.h" +#include "GattAttribute.h" class ServiceDiscovery { public: @@ -32,9 +33,9 @@ public: endHandle = end; } - ShortUUIDBytes_t uuid; /**< UUID of the service. */ - Gap::Handle_t startHandle; /**< Service Handle Range. */ - Gap::Handle_t endHandle; /**< Service Handle Range. */ + ShortUUIDBytes_t uuid; /**< UUID of the service. */ + GattAttribute::Handle_t startHandle; /**< Service Handle Range. */ + GattAttribute::Handle_t endHandle; /**< Service Handle Range. */ }; /**@brief Structure for holding information about the service and the characteristics found during @@ -74,17 +75,17 @@ public: uint8_t auth_signed_wr :1; /**< Writing the value with Signed Write Command permitted. */ }; - void setup(ShortUUIDBytes_t uuidIn, Properties_t propsIn, Gap::Handle_t declHandleIn, Gap::Handle_t valueHandleIn) { + void setup(ShortUUIDBytes_t uuidIn, Properties_t propsIn, GattAttribute::Handle_t declHandleIn, GattAttribute::Handle_t valueHandleIn) { uuid = uuidIn; props = propsIn; declHandle = declHandleIn; valueHandle = valueHandleIn; } - ShortUUIDBytes_t uuid; - Properties_t props; - Gap::Handle_t declHandle; - Gap::Handle_t valueHandle; + ShortUUIDBytes_t uuid; + Properties_t props; + GattAttribute::Handle_t declHandle; + GattAttribute::Handle_t valueHandle; }; public: