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{})
解析读取数据响应包
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{})
适配中盛易达无尘度
Click to show internal directories.
Click to hide internal directories.