mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 15:19:52 +08:00
update 电单车
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user