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:
1185:a16103dfb50c
Parent:
1183:1589830dbdb7
Child:
1186:61ac7e01586f
--- a/ble/Gap.h	Wed Apr 06 19:15:37 2016 +0100
+++ b/ble/Gap.h	Wed Apr 06 19:15:38 2016 +0100
@@ -939,8 +939,12 @@
      * @return BLE_ERROR_NONE if the device started advertising successfully.
      */
     ble_error_t startAdvertising(void) {
+        ble_error_t rc;
         setAdvertisingData(); /* Update the underlying stack. */
-        return startAdvertising(_advParams);
+        if ((rc = startAdvertising(_advParams)) == BLE_ERROR_NONE) {
+            state.advertising = 1;
+        }
+        return rc;
     }
 
     /**