update
This commit is contained in:
parent
0d9fa75119
commit
8a813ab293
2
MQTT.py
2
MQTT.py
|
@ -32,7 +32,7 @@ def on_message(client, userdata, msg):
|
||||||
# return
|
# return
|
||||||
# print("验证通过")
|
# print("验证通过")
|
||||||
import os
|
import os
|
||||||
device_name = os.getenv('device_name')
|
device_name = os.environ['device_name']
|
||||||
client.publish('error', payload=device_name, qos=0)
|
client.publish('error', payload=device_name, qos=0)
|
||||||
client.publish('success', payload='验证通过', qos=0)
|
client.publish('success', payload='验证通过', qos=0)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue