esp_hf_client_query_current_operator_name() function
Query the name of currently selected network operator in AG(use AT+COPS commands). As a precondition to use this API, Service Level Connection shall exist with AG.
Syntax
esp_err_t esp_hf_client_query_current_operator_name(void); Return value
- ESP_OK: query of current operator name is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_query_current_operator_name() calls 2 functions:
![]()
esp_hf_client_query_current_operator_name()
esp_hf_client_query_current_operator_name() reads 5 variables and writes 3 variables:
![]()
esp_hf_client_query_current_operator_name()