Skip to content

Commit ccc4388

Browse files
chore: add presence monitoring task to the system
1 parent a6e0508 commit ccc4388

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

room_control_unit/room_control_unit.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "src/app/logic/fsm/thmonitoring/TemperatureHumidityMonitoring.h"
1616
#include "src/app/logic/fsm/gatewayexporter/GatewayExporter.h"
1717
#include "src/app/logic/fsm/luminositymonitoring/LuminosityMonitoring.h"
18+
#include "src/app/logic/fsm/presencemonitoring/PresenceMonitoring.h"
1819

1920
void setup() {
2021
System::getInstance()->init();
@@ -24,6 +25,7 @@ void setup() {
2425
System::getInstance()->addTask(new TemperatureHumidityMonitoring(TEMPERATURE_HUMIDITY_PERIOD, getTemperatureHumidityMonitoringContext(eventList)));
2526
System::getInstance()->addTask(new GatewayExporter(GATEWAY_EXPORTER_PERIOD, getGatewayExporterContext(eventList, SerialInterface::getInstance())));
2627
System::getInstance()->addTask(new LuminosityMonitoring(LUMINOSITY_PERIOD, getLuminosityMonitoringContext(eventList)));
28+
System::getInstance()->addTask(new PresenceMonitoring(PRESENCE_MONITORING_PERIOD, getPresenceMonitoringContext(eventList)));
2729
}
2830

2931
void loop() {

0 commit comments

Comments
 (0)