Bike service

Fork of BLE_API by Bluetooth Low Energy

Revision:
552:9bf985a8a49b
Parent:
551:d79a7933a6d1
Child:
553:434770194877
--- a/public/BLE.h	Fri Jun 19 15:52:10 2015 +0100
+++ b/public/BLE.h	Fri Jun 19 15:52:10 2015 +0100
@@ -1215,7 +1215,19 @@
         gattServer().onUpdatesEnabled(callback);
     }
 
-    void onUpdatesDisabled(GattServer::EventCallback_t callback);
+    /**
+     * Setup a callback for when notifications/indications are disabled for a
+     * characteristic on the local GattServer.
+     *
+     * @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.onUpdatesEnabled(...) should be replaced with
+     * ble.gattServer().onUpdatesEnabled(...).
+     */
+    void onUpdatesDisabled(GattServer::EventCallback_t callback) {
+        gattServer().onUpdatesDisabled(callback);
+    }
+
     void onConfirmationReceived(GattServer::EventCallback_t callback);
 
     /**
@@ -1311,12 +1323,6 @@
  * transport.*/
 
 inline void
-BLE::onUpdatesDisabled(GattServer::EventCallback_t callback)
-{
-    transport->getGattServer().setOnUpdatesDisabled(callback);
-}
-
-inline void
 BLE::onConfirmationReceived(GattServer::EventCallback_t callback)
 {
     transport->getGattServer().setOnConfirmationReceived(callback);