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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: nRF51GattServer.cpp
- Revision:
- 180:5082f66bb16e
- Parent:
- 175:d0385f84ef92
- Child:
- 336:6ac9e1b34de0
--- a/nRF51GattServer.cpp Mon Jun 08 10:43:29 2015 +0100
+++ b/nRF51GattServer.cpp Mon Jun 08 10:43:29 2015 +0100
@@ -22,6 +22,11 @@
#include "nRF51Gap.h"
+nRF51GattServer &nRF51GattServer::getInstance(void) {
+ static nRF51GattServer m_instance;
+ return m_instance;
+}
+
/**************************************************************************/
/*!
@brief Adds a new service to the GATT table on the peripheral