esp_hf_client_deinit() function
De-initialize for HFP client module. This function should be called only after esp_bluedroid_enable() completes successfully. ESP_HF_CLIENT_PROF_STATE_EVT with ESP_HF_DEINIT_SUCCESS will reported to the APP layer.
Return value
- ESP_OK: success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_deinit() calls 2 functions:
![]()
esp_hf_client_deinit()
esp_hf_client_deinit() reads 5 variables and writes 3 variables:
![]()
esp_hf_client_deinit()