abc

Fork of BLE_API by Bluetooth Low Energy

Revision:
371:6c73b5970f2d
Parent:
370:678fdba95a62
Child:
380:2109a08c311c
diff -r 678fdba95a62 -r 6c73b5970f2d public/BLEDevice.h
--- 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