Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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); }