From 10b65a999bf256bf6f6fda025bba8dc61cb95c12 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 7 Dec 2023 16:38:49 +0800 Subject: [PATCH] update --- MQTT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQTT.py b/MQTT.py index db3c92c..3747954 100644 --- a/MQTT.py +++ b/MQTT.py @@ -28,7 +28,7 @@ def valid(msg, client): # Message receiving callback def on_message(client, userdata, msg): - if valid(msg, client) is False: + if not valid(msg, client): return try: origin_data = json.loads(msg.payload.decode('utf-8'))