esp_bt_gap_ssp_passkey_reply() function
Reply the key value to the peer device in the legacy connection stage.
Arguments
bd_addr
BD address of the peer
accept
passkey entry successful or declined.
passkey
passkey value, must be a 6 digit number, can be lead by 0.
Return value
- ESP_OK : success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - other : failed
![]()
esp_err_t esp_bt_gap_ssp_passkey_reply(esp_bd_addr_t bd_addr, bool accept, uint32_t passkey)
esp_bt_gap_ssp_passkey_reply() calls 6 functions:
![]()
esp_bt_gap_ssp_passkey_reply()
esp_bt_gap_ssp_passkey_reply() reads 15 variables and writes 5 variables:
![]()
esp_bt_gap_ssp_passkey_reply()