From e0c5cbc78d80217b23c0e3aaf52c467161a4c256 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 12 Apr 2023 11:02:57 +0200 Subject: [PATCH] hfp_hf_demo: try gatt connect on hfp signaling established --- example/hfp_hf_demo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/hfp_hf_demo.c b/example/hfp_hf_demo.c index feb300186..8f8a34f9e 100644 --- a/example/hfp_hf_demo.c +++ b/example/hfp_hf_demo.c @@ -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); 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)); + + gatt_client_classic_connect(&hfp_hf_packet_handler, device_addr); + break; case HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED: acl_handle = HCI_CON_HANDLE_INVALID;