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 ¶
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 ¶
Open a Modbus connection using the client specified and the layout specified. layout specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.