BLE_API_Tiny_BLE
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 117:0fb20195102b
- Parent:
- 116:ca826083980e
- Child:
- 123:fede41ce9407
--- 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) */