esp_bt_gap_pin_reply() function
Reply the pin_code to the peer device for legacy pairing when ESP_BT_GAP_PIN_REQ_EVT is coming.
Arguments
bd_addr
BD address of the peer
accept
Pin_code reply successful or declined.
pin_code_len
Length of pin_code
Return value
- ESP_OK : success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - other : failed
Examples
esp_bt_gap_pin_reply() is referenced by 11 libraries and example projects: