modbus

package
v0.0.0-...-1bedc47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = errors.New("Timeout")
)

Functions

This section is empty.

Types

type Modbus

type Modbus struct {
	// Read() should be blocking with timeout
	io.ReadWriter
}

func New

func New(rw io.ReadWriter) Modbus

func (*Modbus) ReadRegisters

func (m *Modbus) ReadRegisters(start, words uint16) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL