Bike service
Fork of BLE_API by
Diff: public/DiscoveredCharacteristic.h
- Revision:
- 492:7e0bd56f4957
- Parent:
- 488:bdba688a550f
- Child:
- 493:23cc7ad1b99b
diff -r ed557c8084fd -r 7e0bd56f4957 public/DiscoveredCharacteristic.h --- a/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:02 2015 +0100 +++ b/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:02 2015 +0100 @@ -57,10 +57,6 @@ }; 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 @@ // 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); }