From 3d14ba3dd6af750de01d621a10543015a6b99055 Mon Sep 17 00:00:00 2001 From: jimmy Date: Sat, 23 Jul 2022 01:58:57 +1200 Subject: [PATCH] Add printer to mqtt --- printer/printer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/printer/printer.py b/printer/printer.py index c6528de..c693191 100755 --- a/printer/printer.py +++ b/printer/printer.py @@ -17,6 +17,7 @@ def on_connect(client, userdata, flags, rc): # The callback for when a PUBLISH message is received from the server. def on_message(client, userdata, msg): + print("Print") with open("printer/locations.txt") as locations: lines = locations.read().splitlines() location = random.choice(lines)