1、修改自动补传发送指令的bug
This commit is contained in:
parent
ae1d9c8287
commit
d7bb69c185
@ -78,7 +78,7 @@ public class APIController extends BasicController{
|
|||||||
// 检查上次是否离线,如果是则启动补传
|
// 检查上次是否离线,如果是则启动补传
|
||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
Short len = 15;
|
Short len = 15;
|
||||||
String uploadCmd = "D31A" + HexUtil.Short2HexString(len) +
|
String uploadCmd = "D312" + HexUtil.Short2HexString(len) +
|
||||||
HexUtil.Int2HexString(Integer.parseInt(deviceId)) +
|
HexUtil.Int2HexString(Integer.parseInt(deviceId)) +
|
||||||
"0F"
|
"0F"
|
||||||
+ HexUtil.Byte2HexString((byte) (lastOnlineTime.getYear() - 2000))
|
+ HexUtil.Byte2HexString((byte) (lastOnlineTime.getYear() - 2000))
|
||||||
@ -93,7 +93,7 @@ public class APIController extends BasicController{
|
|||||||
+ HexUtil.Byte2HexString((byte) (now.getMinute()));
|
+ HexUtil.Byte2HexString((byte) (now.getMinute()));
|
||||||
rtcmClient.config(deviceId, uploadCmd);
|
rtcmClient.config(deviceId, uploadCmd);
|
||||||
// 保存
|
// 保存
|
||||||
saveMsg(deviceId, tenantId,0xD31A, uploadCmd, true);
|
saveMsg(deviceId, tenantId,0xD312, uploadCmd, true);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user