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); }