prova invio BLE

Dependents:   BLE_HeartRate_IDB04A1

Fork of BLE_API by Bluetooth Low Energy

Revision:
990:53ac0ac3aa39
Parent:
986:5292837107a3
Child:
992:ca834f7ae8ed
diff -r 017f77f120e1 -r 53ac0ac3aa39 ble/ServiceDiscovery.h
--- a/ble/ServiceDiscovery.h	Thu Nov 26 14:51:22 2015 +0000
+++ b/ble/ServiceDiscovery.h	Thu Nov 26 14:51:22 2015 +0000
@@ -38,7 +38,7 @@
      * framework. The application can safely make a persistent shallow-copy of
      * this object to work with the service beyond the callback.
      */
-    typedef void (*ServiceCallback_t)(const DiscoveredService *);
+    typedef FunctionPointerWithContext<const DiscoveredService *> ServiceCallback_t;
 
     /**
      * Callback type for when a matching characteristic is found during service-
@@ -48,12 +48,12 @@
      * framework. The application can safely make a persistent shallow-copy of
      * this object to work with the characteristic beyond the callback.
      */
-    typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic *);
+    typedef FunctionPointerWithContext<const DiscoveredCharacteristic *> CharacteristicCallback_t;
 
     /**
      * Callback type for when serviceDiscovery terminates.
      */
-    typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle);
+    typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t;
 
 public:
     /**