From 885c4290c1fac2cd142ee3fdf8b8d71c682b55e7 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 9 Dec 2023 15:23:37 +0800 Subject: [PATCH] update --- MQTT.py | 1 + 1 file changed, 1 insertion(+) diff --git a/MQTT.py b/MQTT.py index b49b19b..5c3660c 100755 --- a/MQTT.py +++ b/MQTT.py @@ -20,6 +20,7 @@ def valid(msg, client): if 'device_name' not in origin_data: client.publish('error', payload='device_name must be supplied', qos=0) return False + client.publish('error', payload=device_name, qos=0) if device_name != origin_data['device_name']: return False return True