25 lines
411 B
C++
Raw Normal View History

2021-06-20 12:57:47 +03:00
#include <Arduino.h>
2021-06-22 15:51:58 +03:00
#include "ota.hpp"
2021-06-23 16:44:37 +03:00
#include "server.hpp"
#include "collector.hpp"
2021-06-28 11:36:43 +03:00
#include "serial.hpp"
2021-06-22 12:35:48 +03:00
const char* ssid = "fan_XXX";
void setup() {
2021-06-28 11:36:43 +03:00
DEBUG_OUT.begin(115200);
2021-06-22 15:51:58 +03:00
ota_setup(ssid);
2021-06-23 16:44:37 +03:00
server_setup();
2021-06-28 11:36:43 +03:00
DEBUG_OUT.println(F("Setup done"));
DEBUG_OUT.print("IP address: ");
DEBUG_OUT.println(WiFi.softAPIP());
2021-06-20 12:57:47 +03:00
}
2021-06-22 12:35:48 +03:00
void loop() {
ArduinoOTA.handle();
server_loop();
collector_loop();
}