mirror of
https://github.com/Luzifer/culmqtt.git
synced 2024-11-09 22:40:07 +00:00
Fix: Write init after reset
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3a2dde1cad
commit
a3277d0cfc
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -63,10 +63,10 @@ func main() {
|
||||||
|
|
||||||
// Send initialization for the CUL
|
// Send initialization for the CUL
|
||||||
// TODO: This might be useful to be configurable?
|
// TODO: This might be useful to be configurable?
|
||||||
fmt.Fprintln(port, "X21") // Turn on echoing of received messages
|
|
||||||
fmt.Fprintln(port, "Ax") // reset AskSin
|
fmt.Fprintln(port, "Ax") // reset AskSin
|
||||||
fmt.Fprintln(port, "Zx") // reset Moritz
|
fmt.Fprintln(port, "Zx") // reset Moritz
|
||||||
fmt.Fprintln(port, "brx") // reset WMBus
|
fmt.Fprintln(port, "brx") // reset WMBus
|
||||||
|
fmt.Fprintln(port, "X21") // Turn on echoing of received messages
|
||||||
|
|
||||||
for {
|
for {
|
||||||
scanner := bufio.NewScanner(port)
|
scanner := bufio.NewScanner(port)
|
||||||
|
|
Loading…
Reference in a new issue