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: source/nRF5xSecurityManager.h
- Revision:
- 571:bbf6410b6a89
- Parent:
- 570:f162898cb6c4
- Child:
- 575:7023a8204a1b
--- a/source/nRF5xSecurityManager.h Mon Jan 11 10:19:21 2016 +0000 +++ b/source/nRF5xSecurityManager.h Mon Jan 11 10:19:22 2016 +0000 @@ -25,6 +25,8 @@ class nRF5xSecurityManager : public SecurityManager { public: + static nRF5xSecurityManager &getInstance(); + /* Functions that must be implemented from SecurityManager */ virtual ble_error_t init(bool enableBonding, bool requireMITM, @@ -45,27 +47,7 @@ return btle_purgeAllBondingState(); } - /** - * @brief Clear nRF5xSecurityManager's state. - * - * @return - * BLE_ERROR_NONE if successful. - */ - virtual ble_error_t reset(void) - { - if (SecurityManager::reset() != BLE_ERROR_NONE) { - return BLE_ERROR_INVALID_STATE; - } - - return BLE_ERROR_NONE; - } - public: - /* - * Allow instantiation from nRF5xn when required. - */ - friend class nRF5xn; - nRF5xSecurityManager() { /* empty */ }