From ad4eb9f0f03bd0d0a33271fef8e911a8fac04e06 Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Mon, 19 Aug 2024 15:45:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=B5=E5=8D=95=E8=BD=A6=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../netty/domain/ebike/deviceupload/PowerHeartbeat.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/domain/ebike/deviceupload/PowerHeartbeat.java b/jsowell-netty/src/main/java/com/jsowell/netty/domain/ebike/deviceupload/PowerHeartbeat.java index 3d2c901e0..da6d0132c 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/domain/ebike/deviceupload/PowerHeartbeat.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/domain/ebike/deviceupload/PowerHeartbeat.java @@ -65,7 +65,7 @@ public class PowerHeartbeat { /** * 该时间段内消耗电量:此数据需除以4800后才是真实的电量,该字段属于调试使用,服务器无需关心此字段 */ - private String timePeriodElectricity; + // private String timePeriodElectricity; /** * 峰值功率:整个充电过程中出现过的最大功率,有些版本无此字段 @@ -95,7 +95,7 @@ public class PowerHeartbeat { /** * 上发指令当时的时间,有时候不准确,该字段属于调试使用,服务器无需关心此字段 */ - private String timestamp; + // private String timestamp; /** * 占位时长:(充电柜专用,其他设备忽略此字段)表示充满后占用设备的时长,单位为分钟 @@ -150,8 +150,8 @@ public class PowerHeartbeat { length = 1; this.portTemperature = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) + ""; - length = 4; - this.timestamp = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) + ""; + // length = 4; + // this.timestamp = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) + ""; length = 2; this.occupancyTime = BytesUtil.bytesToIntLittle(Arrays.copyOfRange(dataBytes, startIndex, startIndex = startIndex + length)) + "";