diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-19 21:16:01 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-19 21:16:01 -0700 |
commit | 894fdf7a4588d9e8de522feac60817ea362d7475 (patch) | |
tree | 5af36be3cdf5c0334510b186294a2f574759935d | |
parent | 7ee06b08511754a941893f73bf49409cfa7c713f (diff) | |
download | trackermap-server-894fdf7a4588d9e8de522feac60817ea362d7475.tar.gz trackermap-server-894fdf7a4588d9e8de522feac60817ea362d7475.tar.bz2 trackermap-server-894fdf7a4588d9e8de522feac60817ea362d7475.zip |
Fix responses
-rw-r--r-- | src/main/java/org/traccar/protocol/ItsProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |