mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 00:40:19 +00:00
added z
This commit is contained in:
parent
e1e2ada3d0
commit
df26da3c10
@ -392,6 +392,7 @@ void show_usage(){
|
|||||||
printf("---\n");
|
printf("---\n");
|
||||||
printf("i - perform inquiry and remote name request\n");
|
printf("i - perform inquiry and remote name request\n");
|
||||||
printf("j - perform dedicated bonding to %s, MITM = %u\n", bd_addr_to_str(remote), gap_mitm_protection);
|
printf("j - perform dedicated bonding to %s, MITM = %u\n", bd_addr_to_str(remote), gap_mitm_protection);
|
||||||
|
printf("z - perform dedicated bonding to %s using legacy pairing\n", bd_addr_to_str(remote));
|
||||||
printf("t - terminate HCI connection with handle 0x%04x\n", handle);
|
printf("t - terminate HCI connection with handle 0x%04x\n", handle);
|
||||||
printf("---\n");
|
printf("---\n");
|
||||||
printf("k - query %s for RFCOMM channel\n", bd_addr_to_str(remote_rfcomm));
|
printf("k - query %s for RFCOMM channel\n", bd_addr_to_str(remote_rfcomm));
|
||||||
@ -516,6 +517,12 @@ int stdin_process(struct data_source *ds){
|
|||||||
gap_dedicated_bonding(remote, gap_mitm_protection);
|
gap_dedicated_bonding(remote, gap_mitm_protection);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'z':
|
||||||
|
printf("Start dedicated bonding to %s using legacy pairing\n", bd_addr_to_str(remote));
|
||||||
|
hci_send_cmd(&hci_write_authentication_enable, 1);
|
||||||
|
gap_dedicated_bonding(remote, gap_mitm_protection);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'k':
|
case 'k':
|
||||||
printf("Start SDP query for SPP service\n");
|
printf("Start SDP query for SPP service\n");
|
||||||
sdp_query_rfcomm_channel_and_name_for_uuid(remote_rfcomm, 0x1002);
|
sdp_query_rfcomm_channel_and_name_for_uuid(remote_rfcomm, 0x1002);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user