Skip to content

Commit

Permalink
adding Mqtt handling to main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Apr 12, 2023
1 parent 1b29133 commit 79834e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "MqttHandleInverter.h"
#include "MqttHandleVedirect.h"
#include "MqttHandleHuawei.h"
#include "MqttHandlePowerLimiter.h"
#include "MqttSettings.h"
#include "NetworkSettings.h"
#include "NtpSettings.h"
Expand Down Expand Up @@ -104,6 +105,7 @@ void setup()
MqttHandleHass.init();
MqttHandleVedirectHass.init();
MqttHandleHuawei.init();
MqttHandlePowerLimiter.init();
MessageOutput.println("done");

// Initialize WebApi
Expand Down Expand Up @@ -212,6 +214,8 @@ void loop()
yield();
MqttHandleHuawei.loop();
yield();
MqttHandlePowerLimiter.loop();
yield();
WebApi.loop();
yield();
Display.loop();
Expand Down

0 comments on commit 79834e4

Please sign in to comment.