This commit is contained in:
xyj 2023-12-09 16:04:38 +08:00
parent d82c9369c2
commit b177247f61
1 changed files with 3 additions and 2 deletions

View File

@ -218,9 +218,10 @@ def test():
'device_name': device_name 'device_name': device_name
} }
t2 = LOT_DATA(**data) t2 = LOT_DATA(**data)
client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0) # client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0)
add(t2) add(t2)
except: except Exception as e:
print(e)
pass pass
finally: finally:
time.sleep(10) time.sleep(10)