Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Rebhan committed Aug 4, 2021
1 parent 59e09d1 commit 4e25c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/inputs/modbus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Registers via Modbus TCP or Modbus RTU/ASCII.

# TCP - connect via Modbus/TCP
controller = "tcp://localhost:502"

## Serial (RS485; RS232)
# controller = "file:///dev/ttyUSB0"
# baud_rate = 9600
Expand All @@ -41,6 +41,7 @@ Registers via Modbus TCP or Modbus RTU/ASCII.
## default behaviour is "TCP" if the controller is TCP
## For Serial you can choose between "RTU" and "ASCII"
# transmission_mode = "RTU"

## Trace the connection to the modbus device as debug messages
# trace_connection = false

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/modbus/modbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (m *Modbus) initClient() error {
if m.DebugConnection {
handler.Logger = m
}
m.handler = handler
m.handler = handler
default:
handler := mb.NewTCPClientHandler(host + ":" + port)
handler.Timeout = time.Duration(m.Timeout)
Expand Down

0 comments on commit 4e25c6f

Please sign in to comment.