This commit is contained in:
xyj 2024-01-06 17:02:22 +08:00
parent 7538d99a24
commit fd5c5ae56a
1 changed files with 6 additions and 6 deletions

View File

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