modbus

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

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

Go to latest
Published: Dec 5, 2023 License: BSD-3-Clause Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const (
	SunSpec = 0x53756e53 // "SunS" - marker bytes used to confirm that a region of Modbus address space is laid out according to SunSpec standards
)

Variables

View Source
var (
	ErrNotSunspecDevice = errors.New("not a SunSpec device") // if the Modbus address space doesn't contain the expected marker bytes
)

Functions

func Open

func Open(client modbus.Client) (sunspec.Array, error)

Open uses the Modbus connection provided by client to connect to a Modbus address space. The address space is scanned for one or more SunSpec devices and a reference to a sunspec.Array that provides access to these devices is returned.

func OpenWithLayout

func OpenWithLayout(client modbus.Client, l layout.AddressSpaceLayout) (sunspec.Array, error)

Open a Modbus connection using the client specified and the layout specified. layout specified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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