24 lines
734 B
Text
24 lines
734 B
Text
[[inputs.modbus]]
|
|
name = "Device"
|
|
controller = "tcp://localhost:502"
|
|
configuration_type = "request"
|
|
exclude_register_type_tag = true
|
|
|
|
[[inputs.modbus.request]]
|
|
slave_id = 1
|
|
register = "holding"
|
|
fields = [
|
|
{ name = "humidity", type = "INT16", scale=1.0, address = 1},
|
|
{ name = "temperature", type = "INT16", scale=1.0, address = 4},
|
|
{ name = "active", type = "INT16", scale=1.0, address = 7},
|
|
]
|
|
|
|
[[inputs.modbus.request]]
|
|
slave_id = 1
|
|
register = "input"
|
|
fields = [
|
|
{ name = "humidity", type = "INT16", scale=1.0, address = 2},
|
|
{ name = "temperature", type = "INT16", scale=1.0, address = 5},
|
|
{ name = "active", type = "INT16", scale=1.0, address = 8},
|
|
]
|
|
|