#include "esp32_ethernet.hpp" #include "rest.hpp" #include "mpod.hpp" unsigned long start; extern bool eth_connected; extern SNMP::Manager snmp; void setup() { Serial.begin(115200); initializeNetwork(); initializeRoutes(); initializeSNMP(); start = millis(); } enum { NONE, ON, OFF, }; void serial_loop() { if (millis() - start >= 1000) { start = millis(); Serial.print(eth_connected ? "." : "-"); } } void loop() { snmp.loop(); restServer.handleClient(); serial_loop(); }