No changes
Fork of nRF51822 by
Diff: source/nRF5xSecurityManager.h
- Revision:
- 561:613dbbdeed27
- Parent:
- 558:c4b56f9d6f3b
- Child:
- 563:9c4b96f7be8d
--- a/source/nRF5xSecurityManager.h Mon Jan 11 10:19:14 2016 +0000 +++ b/source/nRF5xSecurityManager.h Mon Jan 11 10:19:15 2016 +0000 @@ -47,6 +47,21 @@ return btle_purgeAllBondingState(); } + /** + * @brief Clear nRF5xSecurityManager's state. + * + * @return + * BLE_ERROR_NONE if successful. + */ + virtual ble_error_t cleanup(void) + { + if (SecurityManager::cleanup() != BLE_ERROR_NONE) { + return BLE_ERROR_INVALID_STATE; + } + + return BLE_ERROR_NONE; + } + public: nRF5xSecurityManager() { /* empty */