From 2dbe62da9e665a9986cf9ccc68e3346c2a784641 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 3 Jun 2015 15:14:52 +0100 Subject: [PATCH] minor re-organization of methods --- public/DiscoveredCharacteristic.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/DiscoveredCharacteristic.h b/public/DiscoveredCharacteristic.h index 0947ec3..26e96a2 100644 --- a/public/DiscoveredCharacteristic.h +++ b/public/DiscoveredCharacteristic.h @@ -57,10 +57,6 @@ public: }; typedef void (*ReadCallback_t)(const ReadResponse_t *params); - static void setupOnDataRead(ReadCallback_t callback) { - onDataReadCallback = callback; - } - /** * Initiate (or continue) a read for the value attribute, optionally at a * given offset. If the Characteristic or Descriptor to be read is longer @@ -111,6 +107,10 @@ public: // return (ble.getGattClient())->write(BLE_GATT_OP_WRITE_CMD, connHandle, length, value); } + static void setupOnDataRead(ReadCallback_t callback) { + onDataReadCallback = callback; + } + void setupLongUUID(UUID::LongUUIDBytes_t longUUID) { uuid.setupLong(longUUID); }