BLE
Fork of BLE_API by
Diff: public/DiscoveredCharacteristic.h
- Revision:
- 502:ff6801633d2c
- Parent:
- 500:db9bc083f91e
- Child:
- 506:ac825d37e8f2
diff -r 2625510739a6 -r ff6801633d2c public/DiscoveredCharacteristic.h --- a/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:03 2015 +0100 +++ b/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:03 2015 +0100 @@ -20,8 +20,8 @@ #include "UUID.h" #include "Gap.h" #include "GattAttribute.h" +#include "GattClient.h" -class GattClient; /* forward declaration */ /** * Structure for holding information about the service and the characteristics @@ -52,14 +52,6 @@ operator unsigned() const; /* disallow implicit conversion into an integer */ }; - struct ReadResponse_t { - GattAttribute::Handle_t handle; /**< Attribute Handle. */ - uint16_t offset; /**< Offset of the attribute data. */ - uint16_t len; /**< Attribute data length. */ - const uint8_t *data; /**< Attribute data, variable length. */ - }; - typedef void (*ReadCallback_t)(const ReadResponse_t *params); - /** * Initiate (or continue) a read for the value attribute, optionally at a * given offset. If the Characteristic or Descriptor to be read is longer