Explorar o código

fix typo on subscribed topic

David %!s(int64=8) %!d(string=hai) anos
pai
achega
e8319c31d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mic1/mic.py

+ 1 - 1
mic1/mic.py

@@ -44,7 +44,7 @@ def on_connect(client, userdata, flags, rc):
 def on_message(client, userdata, msg):
     print(msg.topic+" "+str(msg.payload))
     global not_exited
-    if msg.topic == "vide/mic1/restart":
+    if msg.topic == "video/mic1/restart":
         not_exited = False