Skip to content

Commit de9fcc5

Browse files
committed
umqtt.simple: Update for to_bytes() parameters refactor.
1 parent 050c6cd commit de9fcc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

umqtt.simple/umqtt/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def subscribe(self, topic, qos=0):
136136
#print(hex(len(pkt)), hexlify(pkt, ":"))
137137
self.sock.write(pkt)
138138
self._send_str(topic)
139-
self.sock.write(qos.to_bytes(1))
139+
self.sock.write(qos.to_bytes(1, "little"))
140140
while 1:
141141
op = self.wait_msg()
142142
if op == 0x90:

0 commit comments

Comments
 (0)