update
This commit is contained in:
parent
7538d99a24
commit
fd5c5ae56a
|
@ -196,9 +196,9 @@ def get_data():
|
|||
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||
add(t2)
|
||||
# 运行一次就把这个程序关掉
|
||||
# subprocess.Popen(
|
||||
# ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||
# shell=True)
|
||||
subprocess.Popen(
|
||||
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||
shell=True)
|
||||
except Exception as e:
|
||||
# print(e)
|
||||
pass
|
||||
|
@ -229,9 +229,9 @@ def p():
|
|||
client.publish(publish_topic, payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||
add(t2)
|
||||
# 运行一次就把这个程序关掉
|
||||
# subprocess.Popen(
|
||||
# ["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||
# shell=True)
|
||||
subprocess.Popen(
|
||||
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
|
||||
shell=True)
|
||||
except Exception as e:
|
||||
# print(e)
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue