kopia lustrzana https://github.com/micropython/micropython-lib
umqtt.simple: Update for to_bytes() parameters refactor.
rodzic
050c6cdb75
commit
de9fcc53d5
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue