Skip to content

Commit

Permalink
chore: add discovery task to the system
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Feb 5, 2023
1 parent 149e8e7 commit 1b23fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion room_control_unit/room_control_unit.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "src/utils/ArrayStream.h"

#define SERIAL_INTERFACE_BAUD_RATE 115200
#define TASK_NUMBER 12
#define TASK_NUMBER 13

void setup() {
List<Event*>* const eventList = new List<Event*>();
Expand All @@ -26,6 +26,7 @@ void setup() {
System::getInstance()->init();

Task* taskArray[TASK_NUMBER] = {
new DiscoveryTask(getDiscoveryTaskContext(eventList)),
new CommandListener(COMMAND_LISTENER_PERIOD, getCommandListenerContext(SerialInterface::getInstance(), currentCommand)),
new TemperatureHumidityMonitoring(TEMPERATURE_HUMIDITY_PERIOD, getTemperatureHumidityMonitoringContext(eventList)),
new LuminosityMonitoring(LUMINOSITY_PERIOD, getLuminosityMonitoringContext(eventList)),
Expand Down

0 comments on commit 1b23fa6

Please sign in to comment.