change default device
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
serial:
|
||||
device: ttyS1
|
||||
device: /tmp/ttyS1
|
||||
baudrate: 9600
|
||||
#bytesize: 8
|
||||
# 1, 2, 15
|
||||
@@ -22,4 +22,4 @@ pulsar:
|
||||
|
||||
telegram:
|
||||
tcp: false
|
||||
pulsar: true
|
||||
pulsar: true
|
||||
|
||||
+3
-1
@@ -56,5 +56,7 @@ func PulsarSend(data string) error {
|
||||
|
||||
func ClosePulsar() {
|
||||
producer.Close()
|
||||
client.Close()
|
||||
if client != nil {
|
||||
client.Close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user