deprecate GattClient::onDataWrite() in favour of onDataWritten().

master
Rohit Grover 2015-08-07 09:10:39 +01:00
parent 501de9ef1f
commit 3711ca3016
1 changed files with 12 additions and 1 deletions

View File

@ -251,10 +251,21 @@ public:
* Setup a callback for write response events.
* @Note: write commands (issued using writeWoResponse) don't generate a response.
*/
void onDataWrite(WriteCallback_t callback) {
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) {
onDataWritten(callback);
}
/**
* Setup callback for when serviceDiscovery terminates.
*/