Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 699:0ffbb5828b43, committed 2015-06-19
- 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).
