display changed and mqtt stuff added

This commit is contained in:
Wolfgang Hottgenroth
2016-03-03 23:19:56 +01:00
parent 13124ac90b
commit c520e7731c
21 changed files with 1578 additions and 2060 deletions

View File

@ -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();
}