mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
test/le_audio: add command to send broadcast code
This commit is contained in:
parent
166aee1908
commit
222be8a8f7
@ -501,6 +501,8 @@ static void show_usage(void){
|
||||
printf("c - scan and connect to Scan Delegator\n");
|
||||
printf("a - add source\n");
|
||||
printf("m - modify source to PA Sync = 0, bis sync = 0\n");
|
||||
printf("b - send Broadcast Code: ");
|
||||
printf_hexdump(broadcast_code, sizeof(broadcast_code));
|
||||
printf("r - remove source\n");
|
||||
printf("---\n");
|
||||
}
|
||||
@ -528,6 +530,10 @@ static void stdin_process(char c){
|
||||
case 'r':
|
||||
broadcast_audio_scan_service_client_delete_source(bass_cid, bass_source_id);
|
||||
break;
|
||||
case 'b':
|
||||
// send broadcast code
|
||||
broadcast_audio_scan_service_client_set_broadcast_code(bass_cid, bass_source_id, &broadcast_code);
|
||||
break;
|
||||
case '\n':
|
||||
case '\r':
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user