mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
Merge branch 'master' of https://github.com/bluekitchen/btstack
This commit is contained in:
commit
3d21bcb940
@ -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}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user