1.2.2.1.4.4.17 BLE_SMP_UpdateBondingInfo

C

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

Description

Update paired device information to SMP.

Note

This function is suggested to be called once after connected if the connection is bonded. SMP requires bonding information to check permission when processing requests.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] encryptKeySizeEncryption key size.
[in] p_pairInfoPointer to the pairing information buffer. See BLE_SMP_PairInfo_T.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully update the information to SMP.
MBA_RES_INVALID_PARAInvalid connection handle.