update
This commit is contained in:
parent
b3d1b57dc6
commit
8b07f14419
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue