Hello,
I am developing on a esp32 device and want to pair to a phone and get call event notifications (ringing, on call, hangup)
I managed to have it working based on the hfp_hf_demo. I get all the information I want, but I would like to have only the event and not appear on the phone as an audio device, because the device is not audio capable and also because the phone switches the audio to the device when it reconnects during a call and it is rather annoying to have to set the. correct output again.
When not connected to the phone, I try reconnecting using hfp_hf_establish_service_level_connection().
I never try to establish an audio connection.
And I also issue a hfp_hf_release_audio_connection() call as soon as I get a HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED just in case.
I tried other gap device classes without much success I also reduced the supported features to only
uint16_t hf_supported_features =
(1<<HFP_HFSF_CLI_PRESENTATION_CAPABILITY) |
(1<<HFP_HFSF_HF_INDICATORS) |
(1<<HFP_HFSF_ENHANCED_CALL_STATUS);
Thats pretty much all I changed from the demo.
I also tried putting the device type as speaker on the phone instead of headset to tell it that it is not suited for calls, but without success.
Is there something I'm doing wrong here?
Or maybe there is something more suited to do what I want than the HFP profile?
Best
Gregory