BLE_API v2.1.3

BLE Disconnect Reason Definition
BLE Common » BLE Command Definition

## BleDisConnReason
Define the BLE disconnect reason.
typedef uint8_t | BleDisConnReason
#define | BLEDISCONNREASON_AUTHENTICATION_FAILURE (0x05u)
#define | BLEDISCONNREASON_PIN_OR_KEY_MISSING (0x06u)
#define | BLEDISCONNREASON_CONNECTION_TIMEOUT (0x08u)
#define | BLEDISCONNREASON_REMOTE_USER_TERMINATED_CONNECTION (0x13u)
#define | BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES (0x14u)
#define | BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_POWER_OFF (0x15u)
#define | BLEDISCONNREASON_CONNECTION_TERMINATED_BY_LOCAL_HOST (0x16u)
#define | BLEDISCONNREASON_UNSUPPORTED_REMOTE_FEATURE_UNSUPPORTED_LMP_FEATURE (0x1Au)
#define | BLEDISCONNREASON_LMP_RESPONSE_TIMEOUT_LL_RESPONSE_TIMEOUT (0x22u)
#define | BLEDISCONNREASON_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED (0x29u)
#define | BLEDISCONNREASON_UNACCEPTABLE_CONNECTION_INTERVAL (0x3Bu)
#define | BLEDISCONNREASON_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE (0x3Du)
#define | BLEDISCONNREASON_CONNECTION_FAILED_TO_BE_ESTABLISHED (0x3Eu)

## Detailed Description

BLE disconnect reason definition.

## Macro Definition Documentation

## ◆ BLEDISCONNREASON_AUTHENTICATION_FAILURE

#define BLEDISCONNREASON_AUTHENTICATION_FAILURE (0x05u)

Authentication failure.

## ◆ BLEDISCONNREASON_CONNECTION_FAILED_TO_BE_ESTABLISHED

#define BLEDISCONNREASON_CONNECTION_FAILED_TO_BE_ESTABLISHED (0x3Eu)

Connection failed to be established.

## ◆ BLEDISCONNREASON_CONNECTION_TERMINATED_BY_LOCAL_HOST

#define BLEDISCONNREASON_CONNECTION_TERMINATED_BY_LOCAL_HOST (0x16u)

Disconnection by the local device host stack.

## ◆ BLEDISCONNREASON_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE

#define BLEDISCONNREASON_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE (0x3Du)

Connection terminated due to MIC failure.

## ◆ BLEDISCONNREASON_CONNECTION_TIMEOUT

#define BLEDISCONNREASON_CONNECTION_TIMEOUT (0x08u)

Connection timeout.

## ◆ BLEDISCONNREASON_LMP_RESPONSE_TIMEOUT_LL_RESPONSE_TIMEOUT

#define BLEDISCONNREASON_LMP_RESPONSE_TIMEOUT_LL_RESPONSE_TIMEOUT (0x22u)

LMP response timeout.

## ◆ BLEDISCONNREASON_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED

#define BLEDISCONNREASON_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED (0x29u)

Pairing with unit key unsupported.

## ◆ BLEDISCONNREASON_PIN_OR_KEY_MISSING

#define BLEDISCONNREASON_PIN_OR_KEY_MISSING (0x06u)

Encryption key is missing or not saved on the remote device.

## ◆ BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES

#define BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES (0x14u)

Disconnection by the remote device due to low resources.

## ◆ BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_POWER_OFF

#define BLEDISCONNREASON_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_POWER_OFF (0x15u)

Disconnection by the remote device due to power off.

## ◆ BLEDISCONNREASON_REMOTE_USER_TERMINATED_CONNECTION

#define BLEDISCONNREASON_REMOTE_USER_TERMINATED_CONNECTION (0x13u)

Disconnection requested by the remote device users.

## ◆ BLEDISCONNREASON_UNACCEPTABLE_CONNECTION_INTERVAL

#define BLEDISCONNREASON_UNACCEPTABLE_CONNECTION_INTERVAL (0x3Bu)

Connection interval unacceptable.

## ◆ BLEDISCONNREASON_UNSUPPORTED_REMOTE_FEATURE_UNSUPPORTED_LMP_FEATURE

#define BLEDISCONNREASON_UNSUPPORTED_REMOTE_FEATURE_UNSUPPORTED_LMP_FEATURE (0x1Au)

Unsupported remote feature.