deprecate GattClient::onDataWrite() in favour of onDataWritten().
parent
501de9ef1f
commit
3711ca3016
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue