For scoop
Fork of nRF51822 by
Diff: nRF51GattServer.cpp
- Revision:
- 180:5082f66bb16e
- Parent:
- 175:d0385f84ef92
--- 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