mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
ublox_spp_le_counter: include device info service
This commit is contained in:
parent
c9db5c2133
commit
16e3e4af25
@ -336,7 +336,7 @@ nordic_spp_le_counter: nordic_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_O
|
|||||||
nordic_spp_le_streamer: nordic_spp_le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.c
|
nordic_spp_le_streamer: nordic_spp_le_streamer.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} nordic_spp_service_server.o nordic_spp_le_streamer.c
|
||||||
${CC} $(filter-out nordic_spp_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
${CC} $(filter-out nordic_spp_le_streamer.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
||||||
|
|
||||||
ublox_spp_le_counter: ublox_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} ublox_spp_service_server.o ublox_spp_le_counter.c
|
ublox_spp_le_counter: ublox_spp_le_counter.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} device_information_service_server.o ublox_spp_service_server.o ublox_spp_le_counter.c
|
||||||
${CC} $(filter-out ublox_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
${CC} $(filter-out ublox_spp_le_counter.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -180,10 +180,11 @@ int btstack_main(void)
|
|||||||
|
|
||||||
// setup ATT server
|
// setup ATT server
|
||||||
att_server_init(profile_data, NULL, NULL);
|
att_server_init(profile_data, NULL, NULL);
|
||||||
|
// setup device information service
|
||||||
|
device_information_service_server_init();
|
||||||
// setup Nordic SPP service
|
// setup Nordic SPP service
|
||||||
ublox_spp_service_server_init(&ublox_data, &ublox_flow_control);
|
ublox_spp_service_server_init(&ublox_data, &ublox_flow_control);
|
||||||
|
|
||||||
// setup advertisements
|
// setup advertisements
|
||||||
uint16_t adv_int_min = 0x0030;
|
uint16_t adv_int_min = 0x0030;
|
||||||
uint16_t adv_int_max = 0x0030;
|
uint16_t adv_int_max = 0x0030;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
PRIMARY_SERVICE, GAP_SERVICE
|
PRIMARY_SERVICE, GAP_SERVICE
|
||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "uBlox SPP Counter"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "uBlox SPP Counter"
|
||||||
|
|
||||||
|
#import <device_information_service.gatt>
|
||||||
#import <ublox_spp_service.gatt>
|
#import <ublox_spp_service.gatt>
|
Loading…
Reference in New Issue
Block a user