feat(bt/bluedroid): Add supprot for specific indicator sending from AG to Client

This commit is contained in:
wanglai@espressif.com
2023-08-15 17:29:17 +08:00
committed by gongyantao
parent 5600da1cfe
commit 5875f1160e
7 changed files with 90 additions and 10 deletions

View File

@@ -157,7 +157,10 @@ HF_CMD_HANDLER(ind_change)
return 1;
}
printf("Device Indicator Changed!\n");
esp_hf_ag_devices_status_indchange(hf_peer_addr, call_state, call_setup_state, ntk_state, signal);
esp_hf_ag_ciev_report(hf_peer_addr, ESP_HF_IND_TYPE_CALL, call_state);
esp_hf_ag_ciev_report(hf_peer_addr, ESP_HF_IND_TYPE_CALLSETUP, call_setup_state);
esp_hf_ag_ciev_report(hf_peer_addr, ESP_HF_IND_TYPE_SERVICE, ntk_state);
esp_hf_ag_ciev_report(hf_peer_addr, ESP_HF_IND_TYPE_SIGNAL, signal);
return 0;
}