From 0649f4fd978ec4d05eeb7d43059925f5de4dc7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 00:31:16 +0100 Subject: [PATCH] added mqtt subscribe to universe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/main.py b/client/main.py index 4317c5c..c56138d 100644 --- a/client/main.py +++ b/client/main.py @@ -116,8 +116,7 @@ if __name__ == "__main__": mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2) mqttc.connect("192.168.0.1", 1883, 60) mqttc.on_message = on_message - for address in range(dmx_address, dmx_address + 18): - mqttc.subscribe(str(universe)+"/"+str(address), 0) + mqttc.subscribe("PiXelTubes/"+str(universe), 0) settingsUpdateThread = Thread(target=loopCheckSettingUpdates, args=()) pixelUpdateThread = Thread(target=mqtt_listner, args=(universe, dmx_address, strip, LEDS_PER_PIXEL))