No changes
Fork of nRF51822 by
Diff: source/nRF5xGattClient.h
- Revision:
- 566:e425ad9e5d6e
- Parent:
- 565:cf03471a4ec4
- Child:
- 567:e1800bd55a9e
diff -r cf03471a4ec4 -r e425ad9e5d6e source/nRF5xGattClient.h --- 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 */ }