BLE_SMP_UpdateBondingInfo

C

uint16_t BLE_SMP_UpdateBondingInfo(uint16_t connHandle, uint8_t encryptKeySize, BLE_SMP_PairInfo_T *p_pairInfo);

Description

Updates the paired device information to the SMP module.

Note

It is recommended to call this function once after a connection is established if the connection is bonded. The SMP uses bonding information to verify permissions when processing requests.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] encryptKeySizeSize of the encryption key.
[in] p_pairInfoPointer to the pairing information buffer (see BLE_SMP_PairInfo_T).

Return values

Return valueDescription
MBA_RES_SUCCESSInformation updated successfully.
MBA_RES_INVALID_PARAInvalid connection handle.