TI BLE5-Stack API Documentation  1.01.12.00
Macros
GAP Bond Manager Pairing State Events

Macros

#define GAPBOND_PAIRING_STATE_BOND_SAVED   0x03
 Bonding record saved in NV.
 
#define GAPBOND_PAIRING_STATE_CAR_READ   0x04
 Central Address Resolution Characteristic Read.
 
#define GAPBOND_PAIRING_STATE_COMPLETE   0x01
 
#define GAPBOND_PAIRING_STATE_ENCRYPTED   0x02
 
#define GAPBOND_PAIRING_STATE_RPAO_READ   0x05
 Resolvable Private Address Only Characteristic Read.
 
#define GAPBOND_PAIRING_STATE_STARTED   0x00
 

Detailed Description

These are the states that are returned through the pfnPairStateCB_t. See the specific state for its possible statuses.

Macro Definition Documentation

§ GAPBOND_PAIRING_STATE_COMPLETE

#define GAPBOND_PAIRING_STATE_COMPLETE   0x01

Pairing Complete

The following statuses are possible for this state: SUCCESS : pairing pairing is complete (Session keys have been exchanged) SMP_PAIRING_FAILED_PASSKEY_ENTRY_FAILED : user input failed SMP_PAIRING_FAILED_OOB_NOT_AVAIL : Out-of-band data not available SMP_PAIRING_FAILED_AUTH_REQ : Input and output capabilities of devices do not allow for authentication SMP_PAIRING_FAILED_CONFIRM_VALUE : the confirm value does not match the calculated compare value SMP_PAIRING_FAILED_NOT_SUPPORTED : pairing is unsupported SMP_PAIRING_FAILED_ENC_KEY_SIZE : encryption key size is insufficient SMP_PAIRING_FAILED_CMD_NOT_SUPPORTED : The SMP command received is unsupported on this device SMP_PAIRING_FAILED_UNSPECIFIED : encryption failed to start bleTimeout : pairing failed to complete before timeout bleGAPBondRejected : keys did not match

§ GAPBOND_PAIRING_STATE_ENCRYPTED

#define GAPBOND_PAIRING_STATE_ENCRYPTED   0x02

Encryption has started

This event is returned after encryption has started, either using the keys from the pairing that has just completed, or using keys from NV for a bonded device.

The following statuses are possible for this state: SUCCESS : pairing has been initiated. A pairing request has been either sent or received. HCI_ERROR_CODE_PIN_KEY_MISSING : encryption key is missing HCI_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE : feature is unsupported by the remote device HCI_ERROR_CODE_LMP_LL_RESP_TIMEOUT : Timeout waiting for response bleGAPBondRejected (0x32): this is received due to one of the previous three errors

§ GAPBOND_PAIRING_STATE_STARTED

#define GAPBOND_PAIRING_STATE_STARTED   0x00

Pairing Started

The following statuses are possible for this state: SUCCESS : pairing has been initiated. A pairing request has been either sent or received.

© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale