update
This commit is contained in:
parent
e731336111
commit
9924857d9a
2
MQTT.py
2
MQTT.py
|
@ -20,7 +20,7 @@ def valid(msg, client):
|
||||||
if 'device_name' not in origin_data:
|
if 'device_name' not in origin_data:
|
||||||
client.publish('error', payload='device_name must be supplied', qos=0)
|
client.publish('error', payload='device_name must be supplied', qos=0)
|
||||||
return False
|
return False
|
||||||
if origin_data['device_name'] != device_name:
|
if origin_data['device_name'] != 'test':
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue