mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
hfp_hf_demo: try gatt connect on hfp signaling established
This commit is contained in:
parent
80e334cf49
commit
e0c5cbc78d
@ -527,6 +527,9 @@ static void hfp_hf_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t
|
|||||||
acl_handle = hfp_subevent_service_level_connection_established_get_acl_handle(event);
|
acl_handle = hfp_subevent_service_level_connection_established_get_acl_handle(event);
|
||||||
hfp_subevent_service_level_connection_established_get_bd_addr(event, device_addr);
|
hfp_subevent_service_level_connection_established_get_bd_addr(event, device_addr);
|
||||||
printf("Service level connection established %s.\n\n", bd_addr_to_str(device_addr));
|
printf("Service level connection established %s.\n\n", bd_addr_to_str(device_addr));
|
||||||
|
|
||||||
|
gatt_client_classic_connect(&hfp_hf_packet_handler, device_addr);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED:
|
case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED:
|
||||||
acl_handle = HCI_CON_HANDLE_INVALID;
|
acl_handle = HCI_CON_HANDLE_INVALID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user