esp_hf_client_init() function
Initialize the bluetooth HFP client module. This function should be called after esp_bluedroid_enable() completes successfully. ESP_HF_CLIENT_PROF_STATE_EVT with ESP_HF_INIT_SUCCESS will reported to the APP layer.
Return value
- ESP_OK: if the initialization request is sent successfully - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_init() calls 2 functions:
![]()
esp_hf_client_init()
esp_hf_client_init() reads 5 variables and writes 3 variables:
![]()
esp_hf_client_init()