update 电单车协议

This commit is contained in:
Guoqs
2024-09-04 09:17:08 +08:00
parent 057f431cd7
commit 06d8587c46
4 changed files with 25 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ public class EBikeMessageCmd82 extends AbsEBikeMessage {
// 包头
byte[] headerBytes = BytesUtil.stringToHexBytes(header, 3);
// 物理ID
byte[] physicalIdBytes = BytesUtil.intToBytesLittle(physicalId, 4);
byte[] physicalIdBytes = YouDianUtils.getPhysicalIdBytes(physicalId);
// 消息ID
byte[] messageIdBytes = BytesUtil.intToBytesLittle(messageId, 2);
// 命令