From 2415bbb412f39fb96fa5320a0a3a955817c4d5e9 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Fri, 21 Nov 2014 07:28:39 +0000 Subject: [PATCH] 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. --- nRF51GattServer.cpp | 7 +++++++ nRF51GattServer.h | 1 + 2 files changed, 8 insertions(+) diff --git a/nRF51GattServer.cpp b/nRF51GattServer.cpp index 95dfe2b..aa38d06 100644 --- a/nRF51GattServer.cpp +++ b/nRF51GattServer.cpp @@ -300,3 +300,10 @@ void nRF51GattServer::hwCallback(ble_evt_t *p_ble_evt) } } } + +ble_error_t +nRF51GattServer::initializeGATTDatabase(void) +{ + /* Empty. Services are populated in the GattDatabase through addService(). */ + return BLE_ERROR_NONE; +} diff --git a/nRF51GattServer.h b/nRF51GattServer.h index 66f6fc3..c377152 100644 --- a/nRF51GattServer.h +++ b/nRF51GattServer.h @@ -35,6 +35,7 @@ public: 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);