Add shadow RTU field for rtu: false
This commit is contained in:
parent
c384e29356
commit
cf9bf6faa2
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue