移除不符合协议的停机消息字段
This commit is contained in:
parent
5459059c63
commit
c845658b88
@ -205,7 +205,7 @@ public class ChargingController {
|
|||||||
data = ArrayUtils.addAll(data, HexUtils.toBytes(pileNo));
|
data = ArrayUtils.addAll(data, HexUtils.toBytes(pileNo));
|
||||||
data = ArrayUtils.addAll(data, HexUtils.toBytes(gunId));
|
data = ArrayUtils.addAll(data, HexUtils.toBytes(gunId));
|
||||||
}
|
}
|
||||||
String msg = HexUtils.toHex(data).concat(ServiceResult.HEX_OK);
|
String msg = HexUtils.toHex(data);
|
||||||
msg = msg.concat(CRCCalculator.calcCrc(msg));
|
msg = msg.concat(CRCCalculator.calcCrc(msg));
|
||||||
log.info("stop charging, send msg to terminal ({}{}) >>>> {}", pileNo, gunId, msg);
|
log.info("stop charging, send msg to terminal ({}{}) >>>> {}", pileNo, gunId, msg);
|
||||||
return HexUtils.toBytes(msg);
|
return HexUtils.toBytes(msg);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user