test/le_audio: add .gatt

This commit is contained in:
Matthias Ringwald 2022-09-22 14:26:47 +02:00
parent 3b5af3f943
commit 08fd760771
2 changed files with 10 additions and 1 deletions

View File

@ -144,6 +144,7 @@ file(GLOB EXAMPLES_GATT "*.gatt")
# create targets
foreach(EXAMPLE_FILE ${EXAMPLES_C})
get_filename_component(EXAMPLE ${EXAMPLE_FILE} NAME_WE)
set(SOURCE_FILES ${EXAMPLE_FILE})
# add GATT DB creation
if ( "${EXAMPLES_GATT}" MATCHES ${EXAMPLE} )
@ -158,6 +159,6 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C})
else()
message("LE Audio Tool: ${EXAMPLE}")
endif()
add_executable(${EXAMPLE} ${EXAMPLE_FILE} )
add_executable(${EXAMPLE} ${SOURCE_FILES} )
target_link_libraries(${EXAMPLE} btstack m pthread)
endforeach(EXAMPLE_FILE)

View File

@ -0,0 +1,8 @@
PRIMARY_SERVICE, GAP_SERVICE
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Broadcast Sink"
PRIMARY_SERVICE, GATT_SERVICE
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
// add BASS Server
#import <broadcast_audio_scan_service.gatt>