diff --git a/example/Makefile.inc b/example/Makefile.inc index 5249fc08b..e185f81b9 100644 --- a/example/Makefile.inc +++ b/example/Makefile.inc @@ -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: diff --git a/example/ublox_spp_le_counter.c b/example/ublox_spp_le_counter.c index ca22f3299..e350edb18 100644 --- a/example/ublox_spp_le_counter.c +++ b/example/ublox_spp_le_counter.c @@ -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; diff --git a/example/ublox_spp_le_counter.gatt b/example/ublox_spp_le_counter.gatt index 5f750f68e..d38806cc4 100644 --- a/example/ublox_spp_le_counter.gatt +++ b/example/ublox_spp_le_counter.gatt @@ -1,4 +1,5 @@ PRIMARY_SERVICE, GAP_SERVICE CHARACTERISTIC, GAP_DEVICE_NAME, READ, "uBlox SPP Counter" +#import #import \ No newline at end of file