umqtt.simple: Update for to_bytes() parameters refactor.

pull/142/head
Paul Sokolovsky 2016-12-19 22:57:43 +03:00
rodzic 050c6cdb75
commit de9fcc53d5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -136,7 +136,7 @@ class MQTTClient:
#print(hex(len(pkt)), hexlify(pkt, ":"))
self.sock.write(pkt)
self._send_str(topic)
self.sock.write(qos.to_bytes(1))
self.sock.write(qos.to_bytes(1, "little"))
while 1:
op = self.wait_msg()
if op == 0x90: