mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
le_data_channel_server: add GAP Service with name
This commit is contained in:
parent
17f4e5f98f
commit
483d346123
@ -292,16 +292,17 @@ dut_mode_classic: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} dut_mode_classic.c
|
||||
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
le_data_channel_client: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} le_data_channel_client.c
|
||||
${CC} $(filter-out *.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
le_data_channel_server: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_data_channel_server.c
|
||||
${CC} $(filter-out *.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
||||
le_data_channel_server: le_data_channel_server.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} le_data_channel_server.c
|
||||
${CC} $(filter-out le_data_channel_server.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
clean:
|
||||
rm -f ${EXAMPLES} *_demo
|
||||
rm -f *.o *.out *.hex *.exe *.wav *.sbc
|
||||
rm -f ancs_client_demo.h profile.h spp_and_le_counter.h le_counter.h le_streamer.h hog_keyboard_demo.h hog_mouse_demo.h
|
||||
rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h
|
||||
rm -f gatt_battery_query.h gatt_browser.h sm_pairing_peripheral.h spp_and_le_streamer.h
|
||||
rm -f le_data_channel_server.h sm_pairing_central.h
|
||||
rm -rf *.dSYM
|
||||
rm -rf ${BTSTACK_ROOT}/src/*.o
|
||||
rm -rf ${BTSTACK_ROOT}/src/ble/*.o
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "btstack.h"
|
||||
#include "le_data_channel_server.h"
|
||||
|
||||
// #define TEST_STREAM_DATA
|
||||
#define TEST_PACKET_SIZE 1000
|
||||
@ -115,7 +116,7 @@ static void le_data_channel_setup(void){
|
||||
sm_init();
|
||||
|
||||
// setup ATT server: iOS disconnects if ATT MTU Exchange fails
|
||||
att_server_init(NULL, NULL, NULL);
|
||||
att_server_init(profile_data, NULL, NULL);
|
||||
|
||||
// le data channel setup
|
||||
l2cap_le_register_service(&packet_handler, TSPX_le_psm, LEVEL_0);
|
||||
|
4
example/le_data_channel_server.gatt
Normal file
4
example/le_data_channel_server.gatt
Normal file
@ -0,0 +1,4 @@
|
||||
PRIMARY_SERVICE, GAP_SERVICE
|
||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Data Channel"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user