This commit is contained in:
xyj 2023-12-09 15:23:37 +08:00
parent b03872d169
commit 885c4290c1
1 changed files with 1 additions and 0 deletions

View File

@ -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