36 lines
526 B
C++
36 lines
526 B
C++
#include <Arduino.h>
|
|
|
|
#include "main.h"
|
|
#include "boot.h"
|
|
#include "wifi.h"
|
|
#include "http.h"
|
|
#include "mqtt.h"
|
|
|
|
#include "sensor/DallasSensor.h"
|
|
#include "sensor/DHT22.h"
|
|
#include "sensor/Max6675Sensor.h"
|
|
|
|
#ifdef NODE_TEST
|
|
NodeTest node = NodeTest();
|
|
#endif
|
|
|
|
#ifdef NODE_HEIZUNG
|
|
NodeHeizung node = NodeHeizung();
|
|
#endif
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
delay(500);
|
|
Serial.print("Startup\n");
|
|
bootDelay();
|
|
node.setup();
|
|
httpSetup();
|
|
}
|
|
|
|
void loop() {
|
|
wifiLoop();
|
|
mqttLoop();
|
|
node.loop();
|
|
httpLoop();
|
|
}
|