From 127fa568c1f6d884af4e8bdc205c191804d88ac9 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 4 Feb 2016 16:17:04 +0100 Subject: [PATCH] test/iopt: fix compile --- test/pts/Makefile | 2 +- test/pts/ble_central_test.gatt | 9 +++++++++ test/pts/ble_peripheral_test.gatt | 12 ++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 test/pts/ble_central_test.gatt create mode 100644 test/pts/ble_peripheral_test.gatt diff --git a/test/pts/Makefile b/test/pts/Makefile index a1b0cf057..5718d87e9 100644 --- a/test/pts/Makefile +++ b/test/pts/Makefile @@ -69,6 +69,6 @@ bnep_test: ${CORE_OBJ} ${COMMON_OBJ} pan.o bnep_test.c sco_loopback: ${CORE_OBJ} ${COMMON_OBJ} sco_loopback.c ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ -iopt: ${CORE_OBJ} ${COMMON_OBJ} pan.o hsp_ag.o hsp_hs.o hfp_ag.o hfp_hf.o iopt.c hfp.o ${SDP_CLIENT} +iopt: ${CORE_OBJ} ${COMMON_OBJ} pan.o hsp_ag.o hsp_hs.o hfp_ag.o hfp_hf.o hfp_gsm_model.o iopt.c hfp.o ${SDP_CLIENT} ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ \ No newline at end of file diff --git a/test/pts/ble_central_test.gatt b/test/pts/ble_central_test.gatt new file mode 100644 index 000000000..73901e9d3 --- /dev/null +++ b/test/pts/ble_central_test.gatt @@ -0,0 +1,9 @@ +PRIMARY_SERVICE, GAP_SERVICE +CHARACTERISTIC, GAP_DEVICE_NAME, READ, "BTstack" +CHARACTERISTIC, GAP_APPEARANCE, READ, 00 00 + +PRIMARY_SERVICE, GATT_SERVICE +CHARACTERISTIC, GATT_SERVICE_CHANGED, READ, + +PRIMARY_SERVICE, FFF0 +CHARACTERISTIC, FFF1, READ | WRITE | AUTHENTICATED_SIGNED_WRITE | AUTHENTICATION_REQUIRED, "A" diff --git a/test/pts/ble_peripheral_test.gatt b/test/pts/ble_peripheral_test.gatt new file mode 100644 index 000000000..051343054 --- /dev/null +++ b/test/pts/ble_peripheral_test.gatt @@ -0,0 +1,12 @@ +PRIMARY_SERVICE, GAP_SERVICE +CHARACTERISTIC, GAP_DEVICE_NAME, READ | WRITE | DYNAMIC +CHARACTERISTIC, GAP_PERIPHERAL_PRIVACY_FLAG, READ | WRITE | DYNAMIC +CHARACTERISTIC, GAP_PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS, READ, FF FF FF 00 03 FF FF +CHARACTERISTIC, GAP_APPEARANCE, READ | WRITE | DYNAMIC +CHARACTERISTIC, GAP_RECONNECTION_ADDRESS, READ | WRITE | DYNAMIC + +PRIMARY_SERVICE, GATT_SERVICE +CHARACTERISTIC, GATT_SERVICE_CHANGED, READ + +PRIMARY_SERVICE, FFF0 +CHARACTERISTIC, FFF1, READ | WRITE | AUTHENTICATED_SIGNED_WRITE | AUTHENTICATION_REQUIRED, "A"