High level Bluetooth Low Energy API and radio abstraction layer

Dependents:   BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more

Overview

The BLE_API is a high level abstraction for using Bluetooth Low Energy on multiple platforms. For details and examples using the BLE_API please see the BLE_API Summary Page. Or click on the API Documentation tab above.

Supported Services

Supported services can be found in the BLE_API/services folder.

Revision:
949:1902cbd0dd83
Parent:
948:1bb402105289
Child:
958:9da2140ecec8
--- a/ble/ServiceDiscovery.h	Thu Nov 26 12:52:08 2015 +0000
+++ b/ble/ServiceDiscovery.h	Thu Nov 26 12:52:08 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 FunctionPointerWithContext<const DiscoveredService *> ServiceCallback_t;
+    typedef void (*ServiceCallback_t)(const DiscoveredService *);
 
     /**
      * 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 FunctionPointerWithContext<const DiscoveredCharacteristic *> CharacteristicCallback_t;
+    typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic *);
 
     /**
      * Callback type for when serviceDiscovery terminates.
      */
-    typedef FunctionPointerWithContext<Gap::Handle_t> TerminationCallback_t;
+    typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle);
 
 public:
     /**