This commit is contained in:
xyj 2023-12-02 11:22:34 +08:00
parent 95ca7f7a9d
commit aa945954a8
2 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,3 @@
# cd demo/ceshi-1/
# python ceshi.py
import serial
import time
import struct

13
conf/mqtt.conf Normal file
View File

@ -0,0 +1,13 @@
[program:__mqtt__]
directory=/home/pi/lot_manager
command=/usr/bin/python MQTT.py
user=pi
;是否随开机自启 或者reload自启动
autostart=true
;失败重启
autorestart=true
;重启次数
restart_times=3
redirect_stderr=true
stopsignal=TERM
stopasgroup=True