use global mqtt

This commit is contained in:
2025-08-29 10:22:36 +02:00
parent 2dec989294
commit 214f4647a0
3 changed files with 14 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ void setup() {
network->registerMDNS();
Mqtt::connect("10.238.75.81", 1883, "smart_rgb_client", "mqtt", "mqtt");
delay(1000); // Wait for MQTT connection to stabilize
light = new Light(pinR, pinG, pinB, pinCW, pinWW, mqttClient, "smart_rgb_light");
light = new Light(pinR, pinG, pinB, pinCW, pinWW, "smart_rgb_light");
initializeScheduler();
}