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
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] encryptKeySize | Encryption key size. |
[in] p_pairInfo | Pointer to the pairing information buffer. See BLE_SMP_PairInfo_T. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully update the information to SMP. |
MBA_RES_INVALID_PARA | Invalid connection handle. |