update 电单车协议

This commit is contained in:
Guoqs
2024-09-20 10:06:31 +08:00
parent 78737a1411
commit e0d2a7475c
2 changed files with 64 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ public class EBikeMessageCmd06 extends AbsEBikeMessage2 {
/**
* 订单编号:当前充电的订单编号
*/
private String orderCode;
private String transactionCode;
/**
* 该时间段内消耗电量此数据需除以4800后才是真实的电量该字段属于调试使用服务器无需关心此字段
@@ -149,7 +149,7 @@ public class EBikeMessageCmd06 extends AbsEBikeMessage2 {
startIndex += length;
length = 16;
this.orderCode = BytesUtil.bcd2Str(BytesUtil.copyBytes(messageBytes, startIndex, length));
this.transactionCode = BytesUtil.bcd2Str(BytesUtil.copyBytes(messageBytes, startIndex, length));
startIndex += length;
length = 2;