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
Revision 117:0fb20195102b, committed 2014-09-08
- 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) */
