display changed and mqtt stuff added
This commit is contained in:
@ -1,15 +1,31 @@
|
||||
// Do not remove the include below
|
||||
#include "MqttMonitor.h"
|
||||
|
||||
#include <Metro.h>
|
||||
#include <Streaming.h>
|
||||
|
||||
//The setup function is called once at startup of the sketch
|
||||
void setup()
|
||||
{
|
||||
// Add your initialization code here
|
||||
#include "hmi.h"
|
||||
#include "mqttClient.h"
|
||||
|
||||
Hmi hmi = Hmi();
|
||||
Metro tick = Metro(25000); // 25s
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
hmi.begin();
|
||||
hmi.updateMessage();
|
||||
|
||||
MqttClientNS::begin();
|
||||
}
|
||||
|
||||
// The loop function is called in an endless loop
|
||||
void loop()
|
||||
{
|
||||
//Add your repeated code here
|
||||
void loop() {
|
||||
if (tick.check()) {
|
||||
hmi.toggleAlarmState();
|
||||
Serial << "tick" << endl;
|
||||
}
|
||||
|
||||
hmi.exec();
|
||||
|
||||
MqttClientNS::exec();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user