This commit is contained in:
xyj 2023-12-09 16:40:40 +08:00
parent b3d1b57dc6
commit 8b07f14419
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ def on_connect(client, userdata, flags, rc):
global times
if rc == 0:
print("连接成功,执行数据推送和本地存储")
client.publish('success', payload='连接成功,执行数据推送和本地存储', qos=0)
# subprocess.Popen(['/usr/bin/bash /home/pi/lot_manager/bash/start_data_upload.sh'], shell=True)
times = 3