ublox_spp_le_counter: include device info service

This commit is contained in:
Milanka Ringwald 2018-11-13 09:35:34 +01:00
parent c9db5c2133
commit 16e3e4af25
3 changed files with 5 additions and 3 deletions

View File

@ -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
${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 $@
clean:

View File

@ -180,10 +180,11 @@ int btstack_main(void)
// setup ATT server
att_server_init(profile_data, NULL, NULL);
// setup device information service
device_information_service_server_init();
// setup Nordic SPP service
ublox_spp_service_server_init(&ublox_data, &ublox_flow_control);
// setup advertisements
uint16_t adv_int_min = 0x0030;
uint16_t adv_int_max = 0x0030;

View File

@ -1,4 +1,5 @@
PRIMARY_SERVICE, GAP_SERVICE
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "uBlox SPP Counter"
#import <device_information_service.gatt>
#import <ublox_spp_service.gatt>