mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
add + to initiate ssp on existing connection
This commit is contained in:
parent
57aa5a341d
commit
b115e2b53b
@ -410,6 +410,7 @@ void show_usage(){
|
||||
printf("r - send L2CAP ECHO request\n");
|
||||
printf("s - close L2CAP channel\n");
|
||||
printf("x - require SSP for outgoing SDP L2CAP channel\n");
|
||||
printf("+ - initate SSP on current connection\n");
|
||||
printf("---\n");
|
||||
printf("Ctrl-c - exit\n");
|
||||
printf("---\n");
|
||||
@ -590,6 +591,11 @@ int stdin_process(struct data_source *ds){
|
||||
rfcomm_channel_id = 0;
|
||||
break;
|
||||
|
||||
case '+':
|
||||
printf("Initiate SSP on current connection\n");
|
||||
gap_request_security_level(handle);
|
||||
break;
|
||||
|
||||
default:
|
||||
show_usage();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user