SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

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);