huprotocol

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValLizi03 = "MP03"
	ValLizi05 = "MP05"
	ValLizi20 = "MP20"
	ValLizi50 = "MP50"
	ValWendu  = "TEMP"
	ValShidu  = "HUMI"
)

map key name

View Source
const (
	ZKZQRTU = "ZKZQRTU" // 中科正奇微粒子温湿度传感器
)

ModbusRTU

Variables

View Source
var (
	RJ45RTU_cmd_body = []byte{0x03, 0x00, 0x00, 0x00, 0x02}
	RJ45TCP_cmd_body = []byte{0x03, 0x00, 0x00, 0x00, 0x0a}
)

Functions

This section is empty.

Types

type ZKZQRTUProt

type ZKZQRTUProt struct {
}

func (ZKZQRTUProt) DecodeReadResp

func (ZKZQRTUProt) DecodeReadResp(resp []byte, args ...byte) (datamp map[string]interface{})

解析读取数据响应包

func (ZKZQRTUProt) ReadCMD

func (ZKZQRTUProt) ReadCMD(slaveid byte) (cmd []byte)

读数据

type ZKZQTCPProt

type ZKZQTCPProt struct {
}

func (ZKZQTCPProt) DecodeReadResp

func (ZKZQTCPProt) DecodeReadResp(resp []byte, args ...byte) (datamp map[string]interface{})

func (ZKZQTCPProt) DecodeReadRespZSYD added in v1.0.5

func (ZKZQTCPProt) DecodeReadRespZSYD(resp []byte, args ...byte) (datamp map[string]interface{})

适配中盛易达无尘度

func (ZKZQTCPProt) ReadCMD

func (ZKZQTCPProt) ReadCMD(slaveid byte, arg ...byte) (cmd []byte)

不是modbustcp 用得透传

Jump to

Keyboard shortcuts

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