mqtt
This commit is contained in:
parent
95ca7f7a9d
commit
aa945954a8
3
ceshi.py
3
ceshi.py
|
@ -1,6 +1,3 @@
|
|||
# cd demo/ceshi-1/
|
||||
# python ceshi.py
|
||||
|
||||
import serial
|
||||
import time
|
||||
import struct
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue