High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 15:53:05 2015 +0100
Parent:
698:8d34aa7f78ea
Child:
700:99872678bbf9
Commit message:
Synchronized with git rev b70e8f61
Author: Rohit Grover
drop GattServer::initializeGattDatabase()

Changed in this revision

public/BLE.h Show annotated file Show diff for this revision Revisions of this file
public/GattServer.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/BLE.h	Fri Jun 19 15:53:05 2015 +0100
+++ b/public/BLE.h	Fri Jun 19 15:53:05 2015 +0100
@@ -444,15 +444,6 @@
      * ble.gap().startAdvertising(...).
      */
     ble_error_t startAdvertising(void) {
-        /* HACK ALERT! the following bit with initializeGATTDatabase() is additional to
-         * gap().startAdvertising(). This was put in place to get some stacks to
-         * work--like CSR. We need to reach a point where this shouldn't be
-         * necessary. */
-        ble_error_t rc;
-        if ((rc = transport->getGattServer().initializeGATTDatabase()) != BLE_ERROR_NONE) {
-            return rc;
-        }
-
         return gap().startAdvertising();
     }
 
--- a/public/GattServer.h	Fri Jun 19 15:53:05 2015 +0100
+++ b/public/GattServer.h	Fri Jun 19 15:53:05 2015 +0100
@@ -136,8 +136,6 @@
      */
     virtual ble_error_t write(Gap::Handle_t connectionHandle, GattAttribute::Handle_t, const uint8_t *, uint16_t, bool localOnly = false) = 0;
 
-    virtual ble_error_t initializeGATTDatabase(void) = 0;
-
     /**
      * Add a callback for the GATT event DATA_SENT (which is triggered when
      * updates are sent out by GATT in the form of notifications).