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 nRF51822 by
Revision 78:9a5ba2c5d53c, committed 2014-11-21
- Comitter:
- rgrover1
- Date:
- Fri Nov 21 10:00:41 2014 +0000
- Parent:
- 77:9886b2865631
- Child:
- 79:540d11f2764f
- Commit message:
- Synchronized with git rev 2415bbb4
Author: Rohit Grover
Release 0.2.3
=============
Features
~~~~~~~~
* Add nRF51GattServer::initializeGATTDatabase() to have an explicit commit
point where the underlying GATT server is populated.
* Extend ConnectionCallbackParameters_t to include peer_addr.
Bugfixes
~~~~~~~~
none
Compatibility
~~~~~~~~~~~~~
Works with 0.2.4 of BLE_API.
Changed in this revision
| nRF51GattServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
| nRF51GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51GattServer.cpp Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51GattServer.cpp Fri Nov 21 10:00:41 2014 +0000
@@ -300,3 +300,10 @@
}
}
}
+
+ble_error_t
+nRF51GattServer::initializeGATTDatabase(void)
+{
+ /* Empty. Services are populated in the GattDatabase through addService(). */
+ return BLE_ERROR_NONE;
+}
\ No newline at end of file
--- a/nRF51GattServer.h Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51GattServer.h Fri Nov 21 10:00:41 2014 +0000
@@ -35,6 +35,7 @@
virtual ble_error_t addService(GattService &);
virtual ble_error_t readValue(uint16_t handle, uint8_t buffer[], uint16_t *const lengthP);
virtual ble_error_t updateValue(uint16_t, uint8_t[], uint16_t, bool localOnly = false);
+ virtual ble_error_t initializeGATTDatabase(void);
/* nRF51 Functions */
void eventCallback(void);
