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.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: public/GattCharacteristicCallbackParams.h
- Revision:
- 651:34d82c1c591f
- Parent:
- 514:1fa338281798
- Child:
- 652:b8a596891951
diff -r 4f08874dec9c -r 34d82c1c591f public/GattCharacteristicCallbackParams.h
--- a/public/GattCharacteristicCallbackParams.h Fri Jun 19 15:52:58 2015 +0100
+++ b/public/GattCharacteristicCallbackParams.h Fri Jun 19 15:52:59 2015 +0100
@@ -40,8 +40,8 @@
GATTS_CHAR_OP_READ_REQ = 0x0A, /**< Read Request. */
} op; /**< Type of write operation, */
uint16_t offset; /**< Offset for the read operation. */
- uint16_t *len; /**< Length of the outgoing data. */
- uint8_t *data; /**< Outgoing data, variable length. */
+ uint16_t len;
+ const uint8_t *data; /* @note: data might not persist beyond the callback; make a local copy if needed. */
};
enum GattCharacteristicAuthCBReply_t {
