mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
mesh: add toggle beacon to mesh pts test
This commit is contained in:
parent
15cb14e1e9
commit
fcebcd5cfd
@ -450,6 +450,7 @@ static void show_usage(void){
|
||||
printf("o - Enable Output OOB \n");
|
||||
printf("i - Input Output OOB \n");
|
||||
printf("s - Static Output OOB \n");
|
||||
printf("b - Set Secure Network Beacon %s\n", mesh_foundation_beacon_get() ? "Off" : "On");
|
||||
printf("g - Generic ON/OFF Server Toggle Value\n");
|
||||
printf("\n");
|
||||
}
|
||||
@ -520,6 +521,11 @@ static void stdin_process(char cmd){
|
||||
printf("Generic ON/OFF Server Toggle Value\n");
|
||||
mesh_generic_on_off_server_set(&mesh_generic_on_off_server_model, 1-mesh_generic_on_off_server_get(&mesh_generic_on_off_server_model), 0, 0);
|
||||
break;
|
||||
case 'b':
|
||||
printf("Turn Secure Network Beacon %s\n", mesh_foundation_beacon_get() ? "Off" : "On");
|
||||
mesh_foundation_beacon_set(1 - mesh_foundation_beacon_get());
|
||||
mesh_foundation_state_store();
|
||||
break;
|
||||
case ' ':
|
||||
show_usage();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user