mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 00:32:52 +00:00
auto-pts: add 'enable connectable mode' and remove no BR/EDR flag
This commit is contained in:
parent
c76cb5f62e
commit
5883f94f0f
@ -143,7 +143,8 @@ static void reset_gap(void){
|
||||
#endif
|
||||
|
||||
// TODO: check ENABLE_CLASSIC / Controller features
|
||||
ad_flags = BT_LE_AD_NO_BREDR;
|
||||
// ad_flags = BT_LE_AD_NO_BREDR;
|
||||
ad_flags = 0;
|
||||
}
|
||||
|
||||
static void btstack_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
@ -824,6 +825,7 @@ static void usage(void){
|
||||
printf("p - Power On\n");
|
||||
printf("P - Power Off\n");
|
||||
printf("x - Back to main\n");
|
||||
printf("c - enable connectable mode\n");
|
||||
printf("d - enable general discoverable mode\n");
|
||||
printf("D - enable limited discoverable mode\n");
|
||||
printf("a - start advertising with public address\n");
|
||||
@ -866,6 +868,9 @@ static void stdin_process(char cmd){
|
||||
case 'P':
|
||||
btp_packet_handler(BTP_SERVICE_ID_GAP, BTP_GAP_OP_SET_POWERED, 0, 1, &value_off);
|
||||
break;
|
||||
case 'c':
|
||||
btp_packet_handler(BTP_SERVICE_ID_GAP, BTP_GAP_OP_SET_CONNECTABLE, 0, 1, &value_on);
|
||||
break;
|
||||
case 'i':
|
||||
btp_packet_handler(BTP_SERVICE_ID_GAP, BTP_GAP_OP_START_DISCOVERY, 0, 1, &inquiry_scan);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user