mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-18 11:27:49 +08:00
1078-暂时注释位置附加信息读取
This commit is contained in:
parent
ae239c8848
commit
59c91bdaf8
@ -43,18 +43,18 @@ public class J0200 extends Re {
|
||||
byte[] timeBytes = new byte[6];
|
||||
buf.readBytes(timeBytes);
|
||||
positionInfo.setTime(BCDUtil.transform(timeBytes));
|
||||
boolean readable = buf.isReadable();
|
||||
// 读取附加信息
|
||||
if (buf.isReadable()) {
|
||||
// 支持1078的视频报警上报
|
||||
int alarm = buf.readInt();
|
||||
int loss = buf.readInt();
|
||||
int occlusion = buf.readInt();
|
||||
short storageFault = buf.readShort();
|
||||
short driving = buf.readShort();
|
||||
JTVideoAlarm videoAlarm = JTVideoAlarm.getInstance(alarm, loss, occlusion, storageFault, driving);
|
||||
positionInfo.setVideoAlarm(videoAlarm);
|
||||
}
|
||||
// boolean readable = buf.isReadable();
|
||||
// // 读取附加信息
|
||||
// if (buf.isReadable()) {
|
||||
// // 支持1078的视频报警上报
|
||||
// int alarm = buf.readInt();
|
||||
// int loss = buf.readInt();
|
||||
// int occlusion = buf.readInt();
|
||||
// short storageFault = buf.readShort();
|
||||
// short driving = buf.readShort();
|
||||
// JTVideoAlarm videoAlarm = JTVideoAlarm.getInstance(alarm, loss, occlusion, storageFault, driving);
|
||||
// positionInfo.setVideoAlarm(videoAlarm);
|
||||
// }
|
||||
log.info("[JT-位置汇报]: {}", positionInfo.toString());
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user