change default device
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -56,5 +56,7 @@ func PulsarSend(data string) error {
|
|||||||
|
|
||||||
func ClosePulsar() {
|
func ClosePulsar() {
|
||||||
producer.Close()
|
producer.Close()
|
||||||
|
if client != nil {
|
||||||
client.Close()
|
client.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user