2022-05-24 21:49:47 +08:00
|
|
|
## Enable workarounds required by some devices to work correctly
|
|
|
|
|
# [inputs.modbus.workarounds]
|
2022-11-18 18:53:36 +08:00
|
|
|
## Pause after connect delays the first request by the specified time.
|
|
|
|
|
## This might be necessary for (slow) devices.
|
2022-10-19 02:42:18 +08:00
|
|
|
# pause_after_connect = "0ms"
|
2022-11-18 18:53:36 +08:00
|
|
|
|
|
|
|
|
## Pause between read requests sent to the device.
|
|
|
|
|
## This might be necessary for (slow) serial devices.
|
2022-05-24 21:49:47 +08:00
|
|
|
# pause_between_requests = "0ms"
|
2022-11-18 18:53:36 +08:00
|
|
|
|
|
|
|
|
## Close the connection after every gather cycle.
|
|
|
|
|
## Usually the plugin closes the connection after a certain idle-timeout,
|
|
|
|
|
## however, if you query a device with limited simultaneous connectivity
|
|
|
|
|
## (e.g. serial devices) from multiple instances you might want to only
|
|
|
|
|
## stay connected during gather and disconnect afterwards.
|
2022-05-24 21:49:47 +08:00
|
|
|
# close_connection_after_gather = false
|
2022-11-18 18:53:36 +08:00
|
|
|
|
|
|
|
|
## Force the plugin to read each field in a separate request.
|
|
|
|
|
## This might be necessary for devices not conforming to the spec,
|
|
|
|
|
## see https://github.com/influxdata/telegraf/issues/12071.
|
|
|
|
|
# one_request_per_field = false
|
2023-01-10 03:35:46 +08:00
|
|
|
|
|
|
|
|
## Enforce the starting address to be zero for the first request on
|
|
|
|
|
## coil registers. This is necessary for some devices see
|
|
|
|
|
## https://github.com/influxdata/telegraf/issues/8905
|
|
|
|
|
# read_coils_starting_at_zero = false
|