November 2018
Intermediate to advanced
1150 pages
24h 11m
English
First, we import into cmbroadcast.pro all the components that we have developed by including all of the QMake project's include files that we should have already created:
# cmbroadcast.pro...include(../entities/entities.pri)include(../usecases/uc_broadcaster_publishes_sensor_readings/uc_broadcaster_publishes_sensor_readings.pri)include(../usecases/uc_broadcaster_connects_to_sensor/uc_broadcaster_connects_to_sensor.pri)include(../channels/channel_broadcaster/channel_broadcaster.pri)
Then, we start instantiating the components in main.cpp. We begin with the Broadcaster entity and BroadcasterBt channel. If the Bluetooth channel is initialized correctly, we connect it to the entity_broadcaster:
#include ...
Read now
Unlock full access