2016-03-02 17:30:46 +01:00
|
|
|
#include "MqttMonitor.h"
|
|
|
|
|
2016-03-03 23:19:56 +01:00
|
|
|
#include <Metro.h>
|
|
|
|
#include <Streaming.h>
|
2016-03-02 17:30:46 +01:00
|
|
|
|
2016-03-03 23:19:56 +01:00
|
|
|
#include "hmi.h"
|
|
|
|
#include "mqttClient.h"
|
|
|
|
|
|
|
|
Hmi hmi = Hmi();
|
|
|
|
Metro tick = Metro(25000); // 25s
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
hmi.begin();
|
|
|
|
|
|
|
|
MqttClientNS::begin();
|
2016-03-02 17:30:46 +01:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:19:56 +01:00
|
|
|
void loop() {
|
|
|
|
if (tick.check()) {
|
|
|
|
Serial << "tick" << endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
hmi.exec();
|
|
|
|
|
|
|
|
MqttClientNS::exec();
|
|
|
|
|
2016-03-02 17:30:46 +01:00
|
|
|
}
|