From 2e1527f58be4ad2ae42e6d5e6924fac7e3807752 Mon Sep 17 00:00:00 2001 From: anhlt Date: Fri, 3 Feb 2023 01:03:05 +0700 Subject: [PATCH] Update mss.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xóa hàm on_disconect --- mss.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mss.py b/mss.py index fb727be..3172c97 100644 --- a/mss.py +++ b/mss.py @@ -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)