Update mss.py

xóa hàm on_disconect
This commit is contained in:
2023-02-03 01:03:05 +07:00
parent 3e7418e861
commit 2e1527f58b

5
mss.py
View File

@@ -42,11 +42,6 @@ def publish(client):
else:
client.publish(pubtop,msg,0, retain=False)
def on_disconnect(client, userdata, rc):
if rc != 0:
print("Unexpected disconnection.")
client.disconnect()
client = mqtt_client.Client(client_id, clean_session = False,userdata=None)
client.username_pw_set(username, password)