Files
smart-rgb-esp32/src/main.cpp

22 lines
507 B
C++
Raw Normal View History

2025-07-29 14:58:45 +02:00
#include <Arduino.h>
2025-07-29 17:41:21 +02:00
#include "network.h"
#include "ota.h"
#include "wifimanager.h"
Network* network = nullptr;
OTAHandler* otaHandler = nullptr;
2025-07-29 14:58:45 +02:00
void setup() {
2025-07-29 17:41:21 +02:00
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Starting Smart RGB ESP32...");
network = new Network("smart-rgb");
otaHandler = new OTAHandler("smart-rgb-ota");
network->registerMDNS();
2025-07-29 14:58:45 +02:00
}
void loop() {
2025-07-29 17:41:21 +02:00
otaHandler->poll(); // Handle OTA updates
delay(500);
2025-07-29 14:58:45 +02:00
}