Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "modbus_tcp" // FuncEntityAction ... FuncEntityAction = "entityAction" // DeviceTypeModbusTcp ... DeviceTypeModbusTcp = node.DeviceType("modbus_tcp") )
View Source
const ( // AttrSlaveId ... AttrSlaveId = "slave_id" // AttrAddressPort ... AttrAddressPort = "address_port" )
Variables ¶
This section is empty.
Functions ¶
func NewModbusTcp ¶
NewModbusTcp ...
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, entityManager entity_manager.EntityManager, adaptors *adaptors.Adaptors, scriptService scripts.ScriptService, eventBus event_bus.EventBus) (actor *Actor)
NewActor ...
func (*Actor) SetState ¶
func (e *Actor) SetState(params entity_manager.EntityStateParams) error
SetState ...
type ModBusCommand ¶
type ModBusCommand struct { Function string `json:"function"` Address uint16 `json:"address"` Count uint16 `json:"count"` Command []uint16 `json:"command"` }
ModBusCommand ...
type ModBusResponse ¶
type ModBusResponse struct { Error string `json:"error"` Time float64 `json:"time"` Result []uint16 `json:"result"` }
ModBusResponse ...
Click to show internal directories.
Click to hide internal directories.