esp_hf_client_register_data_callback() function
Register HFP client data output function; the callback is only used in the case that Voice Over HCI is enabled.
Arguments
recv
HFP client incoming data callback function
send
HFP client outgoing data callback function
Return value
- ESP_OK: success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: if callback is a NULL function pointer