Update mss.py
xóa hàm on_disconect
This commit is contained in:
5
mss.py
5
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)
|
||||
|
||||
Reference in New Issue
Block a user