Versions in this module Expand all Collapse all v0 v0.21.1 Nov 6, 2024 v0.21.0 Oct 28, 2024 Changes in this version + const AttrAddressPort + const AttrSlaveId + const DeviceTypeModbusTcp + const FuncEntityAction + const Name + var F embed.FS + func New() plugins.Pluggable + func NewAttr() m.Attributes + func NewModbusTcp(eventBus bus.Bus, actor *Actor) (modbus modbusTcp) + func NewSettings() m.Attributes + type Actor struct + func NewActor(entity *m.Entity, service plugins.Service) (actor *Actor) + func (e *Actor) Destroy() + func (e *Actor) SetState(params plugins.EntityStateParams) error + type ModBusCommand struct + Address uint16 + Command []uint16 + Count uint16 + Function string + type ModBusResponse struct + Error string + Result []uint16 + Time float64