mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
add command to send l2cap connection parameters update
This commit is contained in:
parent
84cf6d83a6
commit
7dba825776
@ -362,6 +362,7 @@ void show_usage(void){
|
||||
printf("t - terminate connection, stop connecting\n");
|
||||
printf("p - auto connect to PTS\n");
|
||||
printf("P - direct connect to PTS\n");
|
||||
printf("z - Update L2CAP Connection Parameters\n");
|
||||
printf("---\n");
|
||||
printf("Ctrl-c - exit\n");
|
||||
printf("---\n");
|
||||
@ -439,6 +440,10 @@ int stdin_process(struct data_source *ds){
|
||||
gap_auto_connection_stop_all();
|
||||
le_central_connect_cancel();
|
||||
break;
|
||||
case 'z':
|
||||
printf("Updating l2cap connection parameters\n");
|
||||
gap_update_connection_parameters(handle, 50, 120, 0, 550);
|
||||
break;
|
||||
default:
|
||||
show_usage();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user