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