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: ble/GattClient.h
- Revision:
- 768:8914bea92690
- Parent:
- 742:861ed7eb186d
- Child:
- 904:8b63ba997581
--- 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); } /**