From 894fdf7a4588d9e8de522feac60817ea362d7475 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 19 Apr 2021 21:16:01 -0700 Subject: Fix responses --- src/main/java/org/traccar/protocol/ItsProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java b/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java index 7bdf59277..1ab76fa52 100644 --- a/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java @@ -148,9 +148,9 @@ public class ItsProtocolDecoder extends BaseProtocolDecoder { DateFormat dateFormat = new SimpleDateFormat("ddMMyyyyHHmmss"); dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); String time = dateFormat.format(new Date()); - channel.writeAndFlush(new NetworkMessage("$,LGN," + time + ",*", remoteAddress)); + channel.writeAndFlush(new NetworkMessage("$LGN" + time + "*", remoteAddress)); } else if (sentence.startsWith("$,HBT,")) { - channel.writeAndFlush(new NetworkMessage("$,HBT,*", remoteAddress)); + channel.writeAndFlush(new NetworkMessage("$HBT*", remoteAddress)); } } -- cgit v1.2.3