Skip to content

Commit b134b51

Browse files
author
Rohit Grover
committed
Release 0.1.1: Minor bugfix release.
Bugfixes ~~~~~~~~ - Handle all valid disconnection reasons.
1 parent c8eccb0 commit b134b51

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

public/Gap.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@ class Gap
4040
ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE
4141
} addr_type_t;
4242

43+
/**
44+
* enumeration for disconnection reasons. The values for these reasons are
45+
* derived from Nordic's implementation; but the reasons are meant to be
46+
* independent of the transport. If you are returned a reason which is not
47+
* covered by this enumeration, then please refer to the underlying
48+
* transport library.
49+
*/
4350
enum DisconnectionReason_t {
44-
REMOTE_USER_TERMINATED_CONNECTION,
45-
CONN_INTERVAL_UNACCEPTABLE,
46-
LOCAL_HOST_TERMINATED_CONNECTION,
51+
REMOTE_USER_TERMINATED_CONNECTION = 0x13,
52+
LOCAL_HOST_TERMINATED_CONNECTION = 0x16,
53+
CONN_INTERVAL_UNACCEPTABLE = 0x3B,
4754
};
4855

4956
/* Describes the current state of the device (more than one bit can be set) */

0 commit comments

Comments
 (0)