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-bluetooth-mdw
Fork of nRF51822 by
Diff: source/nRF5xGattClient.h
- Revision:
- 566:e425ad9e5d6e
- Parent:
- 565:cf03471a4ec4
- Child:
- 567:e1800bd55a9e
--- a/source/nRF5xGattClient.h Mon Jan 11 10:19:18 2016 +0000
+++ b/source/nRF5xGattClient.h Mon Jan 11 10:19:18 2016 +0000
@@ -23,6 +23,8 @@
class nRF5xGattClient : public GattClient
{
public:
+ static nRF5xGattClient &getInstance();
+
/**
* When using S110, all Gatt client features will return
* BLE_ERROR_NOT_IMPLEMENTED
@@ -145,30 +147,7 @@
}
}
- /**
- * @brief Clear nRF5xGattClient's state.
- *
- * @return
- * BLE_ERROR_NONE if successful.
- */
- virtual ble_error_t reset(void) {
- /* Clear all state that is from the parent, including private members */
- if (GattClient::reset() != BLE_ERROR_NONE) {
- return BLE_ERROR_INVALID_STATE;
- }
-
- /* Clear derived class members */
- discovery.reset();
-
- return BLE_ERROR_NONE;
- }
-
public:
- /*
- * Allow instantiation from nRF5xn when required.
- */
- friend class nRF5xn;
-
nRF5xGattClient() : discovery(this) {
/* empty */
}
