High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 556:34fa32a420f9, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:52:10 2015 +0100
- Parent:
- 555:d31907908234
- Child:
- 557:fdfcce65ca22
- 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:52:10 2015 +0100 +++ b/public/BLE.h Fri Jun 19 15:52:10 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:52:10 2015 +0100 +++ b/public/GattServer.h Fri Jun 19 15:52:10 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).