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.
Fork of nRF51822 by
Diff: nRF51GattClient.cpp
- Revision:
- 332:b054000833d4
- Parent:
- 328:f3aa0fddaa79
diff -r 352bc4a36ea0 -r b054000833d4 nRF51GattClient.cpp --- a/nRF51GattClient.cpp Fri Jun 19 15:55:32 2015 +0100 +++ b/nRF51GattClient.cpp Fri Jun 19 15:55:32 2015 +0100 @@ -16,7 +16,19 @@ #include "nRF51GattClient.h" -nRF51GattClient &nRF51GattClient::getInstance(void) { - static nRF51GattClient m_instance; - return m_instance; +nRF51GattClient nRFGattClientSingleton; + +nRF51GattClient & +nRF51GattClient::getInstance(void) { + return nRFGattClientSingleton; +} + +ble_error_t +nRF51GattClient::launchServiceDiscovery(Gap::Handle_t connectionHandle, + ServiceDiscovery::ServiceCallback_t sc, + ServiceDiscovery::CharacteristicCallback_t cc, + const UUID &matchingServiceUUIDIn, + const UUID &matchingCharacteristicUUIDIn) +{ + return discovery.launch(connectionHandle, sc, cc, matchingServiceUUIDIn, matchingCharacteristicUUIDIn); } \ No newline at end of file