jgh
Fork of BLE_API by
Diff: public/BLE.h
- Revision:
- 554:59e95a0efa37
- Parent:
- 553:434770194877
- Child:
- 556:34fa32a420f9
diff -r 434770194877 -r 59e95a0efa37 public/BLE.h --- a/public/BLE.h Fri Jun 19 15:52:10 2015 +0100 +++ b/public/BLE.h Fri Jun 19 15:52:10 2015 +0100 @@ -1228,7 +1228,18 @@ gattServer().onUpdatesDisabled(callback); } - void onConfirmationReceived(GattServer::EventCallback_t callback); + /** + * Setup a callback for when the GATT server receives a response for an + * indication event sent previously. + * + * @note: This API is now *deprecated* and will be dropped in the future. + * You should use the parallel API from GattServer directly. A former call + * to ble.onConfirmationReceived(callback) should be replaced with + * ble.gattServer().onConfirmationReceived(callback). + */ + void onConfirmationReceived(GattServer::EventCallback_t callback) { + gattServer().onConfirmationReceived(callback); + } /** * Setup a callback for when the security setup procedure (key generation @@ -1319,13 +1330,4 @@ typedef BLE BLEDevice; /* DEPRECATED. This type alias is retained for the sake of compatibility with older * code. Will be dropped at some point soon.*/ -/* BLE methods. Most of these simply forward the calls to the underlying - * transport.*/ - -inline void -BLE::onConfirmationReceived(GattServer::EventCallback_t callback) -{ - transport->getGattServer().setOnConfirmationReceived(callback); -} - #endif // ifndef __BLE_H__ \ No newline at end of file