Skip to content

Commit 392cbfb

Browse files
committed
added mqtt.py directly
1 parent d6e2030 commit 392cbfb

File tree

3 files changed

+2354
-4
lines changed

3 files changed

+2354
-4
lines changed

yun/client.py renamed to yun/bridge.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import sys
2-
import paho.mqtt.client as mqtt
2+
import mqtt
33

4-
class Client:
4+
class Bridge:
55
# Constructor
66
def __init__(self):
77
self.client = None
88

9-
# Client Callbacks
9+
# Bridge Callbacks
1010
def on_connect(self, _, __, ___, rc):
1111
if rc == 0:
1212
self.send_command("ca")
@@ -70,4 +70,4 @@ def run(self):
7070
self.parse_command(sys.stdin.readline()[0:-1])
7171

7272
# Main Loop
73-
Client().run()
73+
Bridge().run()

0 commit comments

Comments
 (0)