wz2b fork and retry strategy

This commit is contained in:
Javier Peletier
2020-12-17 00:53:11 +01:00
parent 676ed34697
commit f393e77272
4 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func main() {
DataBits: *modbusDataBits,
Parity: *modbusPortParity,
StopBits: *modbusStopBits,
Timeout: 5 * time.Second,
Timeout: 200 * time.Millisecond,
})
if err != nil {
log.Fatalf("Error initializing modbus: %s", err)