modbus

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModbusClient

type ModbusClient struct {
	// contains filtered or unexported fields
}

func NewModbusClient

func NewModbusClient(addr string) (*ModbusClient, error)

func (*ModbusClient) Close

func (client *ModbusClient) Close()

Close 关闭

func (*ModbusClient) Connect

func (client *ModbusClient) Connect() error

Connect 连接modbus

func (*ModbusClient) ReadHoldingRegistersBytes

func (client *ModbusClient) ReadHoldingRegistersBytes(slaveID byte, address, quantity uint16) ([]byte, error)

ReadHoldingRegistersBytes 读取寄存器值

Jump to

Keyboard shortcuts

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