update
This commit is contained in:
parent
b03872d169
commit
885c4290c1
1
MQTT.py
1
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
|
||||
|
|
Loading…
Reference in New Issue