I am using the CYW920706 eval board. I want to run the hci_handsfree demo code without having to go through Client Control first. My understanding is that the hci_handsfree code is just the bluetooth protocols and such, but it is the handsfree.cpp in Client Control that actually calls the functions within handsfree_main.c? How can I modify the handsfree.cpp code to start pairing at the push of button interrupt instead of using the Client Control UI?
I started by trying to comment out the things related to the UI...but I am not sure if that is going in the right direction.
I am new to this stuff, thanks for your patience!
I think you need to change the application code in handsfree_main.c. You need to add a button interrupt in the application. You may refer to the hello_sensor demo for the button interrupt usage.
In the button interrupt callback, you can call the wiced_bt_hfp_hf_connect(bd_addr) to initiate the HF connection.