public class DigesterProtocolFrame extends Object
| 构造器和说明 |
|---|
DigesterProtocolFrame() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
decodeBcd(byte bcd) |
static byte |
decodeCmd(byte cmd)
命令字:发送0x05命令,返回的是0x85命令
|
static DigesterEntity |
decodePack(byte[] pack)
报文解包
|
static List<DigesterEntity> |
decodeStickPack(byte[] pack) |
static int |
encodeBcd(int dec) |
static byte[] |
encodeBroadcast() |
static byte[] |
encodePack(DigesterEntity entity)
报文打包
|
public static byte[] encodeBroadcast()
public static byte[] encodePack(DigesterEntity entity)
public static DigesterEntity decodePack(byte[] pack)
pack - public static List<DigesterEntity> decodeStickPack(byte[] pack)
public static int decodeBcd(byte bcd)
public static int encodeBcd(int dec)
public static byte decodeCmd(byte cmd)
cmd - Copyright © 2024. All rights reserved.