From fd5c5ae56ace93234d1e79f821c1116a1cecab8e Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 6 Jan 2024 17:02:22 +0800 Subject: [PATCH] update --- sensor_to_server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sensor_to_server.py b/sensor_to_server.py index feb9b7c..863edc2 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -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