This commit is contained in:
xyj 2023-12-07 18:47:59 +08:00
parent 0d9fa75119
commit 8a813ab293
1 changed files with 1 additions and 1 deletions

View File

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