update 电单车

This commit is contained in:
Guoqs
2024-09-14 17:21:45 +08:00
parent 86dd583ad6
commit 2d180368a9

View File

@@ -60,7 +60,7 @@ public class ChargingOperationResponse extends AbsEBikeMessage2 {
protected void parseMessage(byte[] messageBytes) { protected void parseMessage(byte[] messageBytes) {
super.parseMessage(messageBytes); super.parseMessage(messageBytes);
// 截取数据 // 截取数据
byte[] bytes = BytesUtil.copyBytes(messageBytes, 11, this.msgLength); byte[] bytes = BytesUtil.copyBytes(messageBytes, 12, this.msgLength);
ChargingOperationResponse response = new ChargingOperationResponse(bytes); ChargingOperationResponse response = new ChargingOperationResponse(bytes);
System.out.println(JSON.toJSONString(response)); System.out.println(JSON.toJSONString(response));
} }
@@ -70,6 +70,6 @@ public class ChargingOperationResponse extends AbsEBikeMessage2 {
byte[] messageBytes = BytesUtil.hexStringToByteArray(s); byte[] messageBytes = BytesUtil.hexStringToByteArray(s);
ChargingOperationResponse response = new ChargingOperationResponse(messageBytes); ChargingOperationResponse response = new ChargingOperationResponse(messageBytes);
response.parseMessage(messageBytes); response.parseMessage(messageBytes);
System.out.println(response); // System.out.println(response);
} }
} }