From 2859e9661bdda518bf81df972c1bcb1422e81eff Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 24 Apr 2015 10:29:28 +0200 Subject: [PATCH 1/2] fix compile --- example/embedded/Makefile.inc | 2 +- example/embedded/le_counter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/embedded/Makefile.inc b/example/embedded/Makefile.inc index 2f5f2328f..8be015ece 100644 --- a/example/embedded/Makefile.inc +++ b/example/embedded/Makefile.inc @@ -156,7 +156,7 @@ ancs_client: ancs_client.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OB # CLI Examples -ble_peripheral_test: profile.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_REAL_OBJ} ble_peripheral.o +ble_peripheral_test: profile.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_REAL_OBJ} ble_peripheral_test.o ${CC} $(filter-out profile.h,$^) ${CFLAGS} ${LDFLAGS} -o $@ ble_central_test: ${CORE_OBJ} ${COMMON_OBJ} ${SM_REAL_OBJ} ${ATT_OBJ} ${GATT_CLIENT_OBJ} ble_central_test.c diff --git a/example/embedded/le_counter.c b/example/embedded/le_counter.c index 70b0f25c8..27b1ef32a 100644 --- a/example/embedded/le_counter.c +++ b/example/embedded/le_counter.c @@ -178,7 +178,7 @@ static int att_write_callback(uint16_t con_handle, uint16_t att_handle, uint16_t static void heartbeat_handler(struct timer *ts){ counter++; counter_string_len = sprintf(counter_string, "BTstack counter %04u\n", counter); - puts("%s", counter_string); + puts(counter_string); if (le_notification_enabled) { att_server_notify(ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE, (uint8_t*) counter_string, counter_string_len); From 5912d2bb2c93fb01c0242782e59c0ebf1a66280a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 24 Apr 2015 10:31:36 +0200 Subject: [PATCH 2/2] short intro to example section --- docs/manual/btstack_gettingstarted.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/manual/btstack_gettingstarted.tex b/docs/manual/btstack_gettingstarted.tex index 6a4882584..130d9dab9 100644 --- a/docs/manual/btstack_gettingstarted.tex +++ b/docs/manual/btstack_gettingstarted.tex @@ -434,7 +434,10 @@ Separate packet handlers can be used for each L2CAP service and outgoing connect \newcommand{\BluetoothSpecificationURL}{\href{https://www.bluetooth.org/Technical/Specifications/adopted.htm}{\color{blue} Bluetooth Specification}} \input{protocols_profiles} -\input{examples} + +\section{Examples} +In this section, we will describe a number of examples from the \emph{example/embedded} folder. They are grouped like this: + \input{examples} % \section{Platforms}