change default device

This commit is contained in:
zhiqiang feng
2021-02-01 16:07:00 +08:00
parent 994b432820
commit d570e6cee8
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
serial: serial:
device: ttyS1 device: /tmp/ttyS1
baudrate: 9600 baudrate: 9600
#bytesize: 8 #bytesize: 8
# 1, 2, 15 # 1, 2, 15
@@ -22,4 +22,4 @@ pulsar:
telegram: telegram:
tcp: false tcp: false
pulsar: true pulsar: true
+3 -1
View File
@@ -56,5 +56,7 @@ func PulsarSend(data string) error {
func ClosePulsar() { func ClosePulsar() {
producer.Close() producer.Close()
client.Close() if client != nil {
client.Close()
}
} }