esp_hf_client_send_iphoneaccev() function
Send Battery level and docker status Enable this feature using XAPL command first This is Apple-specific commands, but used by most device, including Android and Windows
Arguments
bat_level
Battery Level: value between 0 and 9
docked
Dock State: false = undocked, true = docked
Return value
- ESP_OK: battery level is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_send_iphoneaccev() calls 2 functions:
![]()
esp_hf_client_send_iphoneaccev()
esp_hf_client_send_iphoneaccev() reads 6 variables and writes 5 variables:
![]()
esp_hf_client_send_iphoneaccev()