mirror of
https://github.com/Luzifer/culmqtt.git
synced 2024-12-22 18:51:22 +00:00
Fix: Initialize the device to have signals reported
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b01f443a8b
commit
47075ebb6c
1 changed files with 7 additions and 0 deletions
7
main.go
7
main.go
|
@ -61,6 +61,13 @@ func main() {
|
|||
// Make sure to close it later.
|
||||
defer port.Close()
|
||||
|
||||
// Send initialization for the CUL
|
||||
// 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, "Zx") // reset Moritz
|
||||
fmt.Fprintln(port, "brx") // reset WMBus
|
||||
|
||||
for {
|
||||
scanner := bufio.NewScanner(port)
|
||||
for scanner.Scan() {
|
||||
|
|
Loading…
Reference in a new issue