aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/ItsProtocolDecoder.java4
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));
}
}