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 BLE_API by
Diff: public/BLEDevice.h
- Revision:
- 371:6c73b5970f2d
- Parent:
- 370:678fdba95a62
- Child:
- 380:2109a08c311c
--- a/public/BLEDevice.h Fri May 08 15:35:48 2015 +0100 +++ b/public/BLEDevice.h Fri May 08 15:35:48 2015 +0100 @@ -331,16 +331,6 @@ void onRadioNotification(Gap::RadioNotificationEventCallback_t callback); /** - * Delete all peer device context and all related bonding information from - * the database within the security manager. - * - * @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure. - * @retval BLE_ERROR_INVALID_STATE If the API is called without module initialization and/or - * application registration. - */ - ble_error_t purgeAllBondingState(void); - - /** * Add a service declaration to the local server ATT table. Also add the * characteristics contained within. */ @@ -527,6 +517,16 @@ */ ble_error_t getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP); + /** + * Delete all peer device context and all related bonding information from + * the database within the security manager. + * + * @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure. + * @retval BLE_ERROR_INVALID_STATE If the API is called without module initialization and/or + * application registration. + */ + ble_error_t purgeAllBondingState(void); + public: BLEDevice() : transport(createBLEDeviceInstance()), advParams(), advPayload(), scanResponse(), needToSetAdvPayload(true) { advPayload.clear(); @@ -784,12 +784,6 @@ } inline ble_error_t -BLEDevice::purgeAllBondingState(void) -{ - return transport->getGap().purgeAllBondingState(); -} - -inline ble_error_t BLEDevice::addService(GattService &service) { return transport->getGattServer().addService(service); @@ -933,4 +927,10 @@ return transport->getGap().getLinkSecurity(connectionHandle, securityStatusP); } +inline ble_error_t +BLEDevice::purgeAllBondingState(void) +{ + return transport->getGap().purgeAllBondingState(); +} + #endif // ifndef __BLE_DEVICE__ \ No newline at end of file