mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-19 14:49:50 +08:00
处理充电桩传来的程序版本
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.common.core.domain.ykc.device2platform;
|
||||
|
||||
import com.jsowell.common.util.BytesUtil;
|
||||
import com.jsowell.common.core.domain.ykc.YKCBaseMessage;
|
||||
import com.jsowell.common.util.PileProgramVersionUtils;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -109,7 +110,7 @@ public class Data0x01 extends YKCBaseMessage {
|
||||
startIndex += length;
|
||||
length = 8;
|
||||
byte[] programVersionByteArr = BytesUtil.copyBytes(messageBytes, startIndex, length);
|
||||
this.programVersion = BytesUtil.ascii2Str(programVersionByteArr);
|
||||
this.programVersion = PileProgramVersionUtils.normalize(BytesUtil.ascii2Str(programVersionByteArr));
|
||||
// log.info("程序版本:{} length:{}", programVersion, programVersion.length());
|
||||
|
||||
// 网络连接类型 0x00 SIM 卡 0x01 LAN 0x02 WAN 0x03 其他
|
||||
|
||||
Reference in New Issue
Block a user