Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 768:8914bea92690, committed 2015-08-07
- Comitter:
- rgrover1
- Date:
- Fri Aug 07 15:55:21 2015 +0100
- Parent:
- 767:d6a79c77d1c3
- Child:
- 769:2d236d9afa9e
- Commit message:
- Synchronized with git rev 3711ca30
Author: Rohit Grover
deprecate GattClient::onDataWrite() in favour of onDataWritten().
Changed in this revision
ble/GattClient.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/GattClient.h Fri Aug 07 15:53:50 2015 +0100 +++ b/ble/GattClient.h Fri Aug 07 15:55:21 2015 +0100 @@ -251,8 +251,19 @@ * Setup a callback for write response events. * @Note: write commands (issued using writeWoResponse) don't generate a response. */ + void onDataWritten(WriteCallback_t callback) { + onDataWriteCallback = callback; + } + + /** + * Setup a callback for write response events. + * @Note: write commands (issued using writeWoResponse) don't generate a response. + * + * @note: This API is now *deprecated* and will be dropped in the future. + * Please use onDataWritten() instead. + */ void onDataWrite(WriteCallback_t callback) { - onDataWriteCallback = callback; + onDataWritten(callback); } /**