Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "modbus_rtu" // FuncEntityAction ... FuncEntityAction = "entityAction" // DeviceTypeModbusRtu ... DeviceTypeModbusRtu = node.DeviceType("modbus_rtu") )
View Source
const ( // AttrSlaveId ... AttrSlaveId = "slave_id" // AttrBaud ... AttrBaud = "baud" // AttrDataBits ... AttrDataBits = "data_bits" // AttrTimeout ... AttrTimeout = "timeout" // AttrStopBits ... AttrStopBits = "stop_bits" // AttrSleep ... AttrSleep = "sleep" // AttrParity ... AttrParity = "parity" )
Variables ¶
View Source
var F embed.FS
Functions ¶
func NewModbusRtu ¶
NewModbusRtu ...
Types ¶
type Actor ¶
type Actor struct { *supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
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.