kopia lustrzana https://github.com/micropython/micropython-lib
umqtt.simple: do not close the socket in ping()
rodzic
9f7b60bede
commit
a261f4b4d7
|
@ -58,7 +58,6 @@ class MQTTClient:
|
|||
|
||||
def ping(self):
|
||||
self.sock.write(b"\xc0\0")
|
||||
self.sock.close()
|
||||
|
||||
def publish(self, topic, msg, retain=False, qos=0):
|
||||
pkt = bytearray(b"\x30\0\0\0")
|
||||
|
|
Ładowanie…
Reference in New Issue