mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-22 16:20:54 +00:00
use rfcomm_create_channel instead of rfcomm_create_channel_internal
This commit is contained in:
parent
432fe57e13
commit
ea83240353
@ -176,7 +176,7 @@ static void handle_query_rfcomm_event(sdp_query_event_t * event, void * context)
|
||||
// connect
|
||||
printf("Requested SPP Service found, creating RFCOMM channel\n");
|
||||
state = W4_RFCOMM_CHANNEL;
|
||||
rfcomm_create_channel_internal(NULL, remote, channel_nr);
|
||||
rfcomm_create_channel(remote, channel_nr, NULL);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -424,7 +424,7 @@ static void handle_query_rfcomm_event(sdp_query_event_t * event, void * context)
|
||||
if (connection->rfcomm_channel_nr > 0){
|
||||
connection->state = HFP_W4_RFCOMM_CONNECTED;
|
||||
log_info("HFP: SDP_QUERY_COMPLETE context %p, addr %s, state %d", connection, bd_addr_to_str( connection->remote_addr), connection->state);
|
||||
rfcomm_create_channel_internal(NULL, connection->remote_addr, connection->rfcomm_channel_nr);
|
||||
rfcomm_create_channel(connection->remote_addr, connection->rfcomm_channel_nr, NULL);
|
||||
break;
|
||||
}
|
||||
log_info("rfcomm service not found, status %u.", ce->status);
|
||||
|
@ -611,7 +611,7 @@ static void handle_query_rfcomm_event(sdp_query_event_t * event, void * context)
|
||||
if (channel_nr > 0){
|
||||
hsp_state = HSP_W4_RFCOMM_CONNECTED;
|
||||
printf("RFCOMM create channel. state %d\n", HSP_W4_RFCOMM_CONNECTED);
|
||||
rfcomm_create_channel_internal(NULL, remote, channel_nr);
|
||||
rfcomm_create_channel(remote, channel_nr, NULL);
|
||||
break;
|
||||
}
|
||||
hsp_ag_reset_state();
|
||||
|
@ -575,7 +575,7 @@ static void handle_query_rfcomm_event(sdp_query_event_t * event, void * context)
|
||||
if (channel_nr > 0){
|
||||
hsp_state = HSP_W4_RFCOMM_CONNECTED;
|
||||
printf("RFCOMM create channel.\n");
|
||||
rfcomm_create_channel_internal(NULL, remote, channel_nr);
|
||||
rfcomm_create_channel(remote, channel_nr, NULL);
|
||||
break;
|
||||
}
|
||||
hsp_hs_reset_state();
|
||||
|
Loading…
x
Reference in New Issue
Block a user