Holla back

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Mon Sep 08 17:11:58 2014 +0100
Parent:
116:ca826083980e
Child:
118:620d28e7a1ba
Commit message:
Release 0.1.1: Minor bugfix release.

Bugfixes
~~~~~~~~

- Handle all valid disconnection reasons.

Changed in this revision

public/Gap.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/Gap.h	Tue Sep 02 15:09:46 2014 +0100
+++ b/public/Gap.h	Mon Sep 08 17:11:58 2014 +0100
@@ -40,10 +40,17 @@
         ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE
     } addr_type_t;
 
+    /**
+     * enumeration for disconnection reasons. The values for these reasons are
+     * derived from Nordic's implementation; but the reasons are meant to be
+     * independent of the transport. If you are returned a reason which is not
+     * covered by this enumeration, then please refer to the underlying
+     * transport library.
+     */
     enum DisconnectionReason_t {
-        REMOTE_USER_TERMINATED_CONNECTION,
-        CONN_INTERVAL_UNACCEPTABLE,
-        LOCAL_HOST_TERMINATED_CONNECTION,
+        REMOTE_USER_TERMINATED_CONNECTION = 0x13,
+        LOCAL_HOST_TERMINATED_CONNECTION  = 0x16,
+        CONN_INTERVAL_UNACCEPTABLE        = 0x3B,
     };
 
     /* Describes the current state of the device (more than one bit can be set) */