From e90c2ac8626739a8ea1ad39406699b42f4499443 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 27 May 2015 15:43:53 +0100 Subject: [PATCH] introduce DiscoveredCharacteristic::read() --- public/DiscoveredCharacteristic.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/DiscoveredCharacteristic.h b/public/DiscoveredCharacteristic.h index 161f968..b873238 100644 --- a/public/DiscoveredCharacteristic.h +++ b/public/DiscoveredCharacteristic.h @@ -70,7 +70,13 @@ public: onDataReadCallback = callback; } - // virtual void read(uint16_t offset = 0); + /** + * Initiate (or continue) a read for the value attribute, optionally at a + * given offset. If the Characteristic or Descriptor to be read is longer + * than ATT_MTU - 1, this function must be called multiple times with + * appropriate offset to read the complete value. + */ + virtual void read(uint16_t offset = 0) = 0; public: void setup(Properties_t propsIn,