Add shadow RTU field for rtu: false

This commit is contained in:
andig 2022-05-12 17:28:33 +02:00
parent c384e29356
commit cf9bf6faa2

View file

@ -28,9 +28,12 @@ const (
)
// Settings contains the ModBus TCP settings
// RTU field is included for compatibility with modbus.tpl which renders rtu: false for TCP
// TODO remove RTU field (https://github.com/evcc-io/evcc/issues/3360)
type TcpSettings struct {
URI string
ID uint8
RTU *bool `mapstructure:"rtu"`
}
// Settings contains the ModBus settings