aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-12 10:23:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-12 10:23:31 +1200
commit5ec4a134fc1f7392fc5a457fc3be19ea8ec20676 (patch)
treee15e476796fbc1c6982e7c8b18244c2bd660cb81 /src
parentae30beb0b049c0dc84d337adbffe68703f7d6e61 (diff)
downloadtrackermap-server-5ec4a134fc1f7392fc5a457fc3be19ea8ec20676.tar.gz
trackermap-server-5ec4a134fc1f7392fc5a457fc3be19ea8ec20676.tar.bz2
trackermap-server-5ec4a134fc1f7392fc5a457fc3be19ea8ec20676.zip
Add Milesmate acknowledgement
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/MilesmateProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MilesmateProtocolDecoder.java b/src/org/traccar/protocol/MilesmateProtocolDecoder.java
index 30e21c06b..7240ad9fc 100644
--- a/src/org/traccar/protocol/MilesmateProtocolDecoder.java
+++ b/src/org/traccar/protocol/MilesmateProtocolDecoder.java
@@ -18,6 +18,7 @@ package org.traccar.protocol;
import io.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
import org.traccar.DeviceSession;
+import org.traccar.NetworkMessage;
import org.traccar.helper.BitUtil;
import org.traccar.helper.DateBuilder;
import org.traccar.helper.Parser;
@@ -62,6 +63,10 @@ public class MilesmateProtocolDecoder extends BaseProtocolDecoder {
return null;
}
+ if (channel != null) {
+ channel.writeAndFlush(new NetworkMessage("+##Received OK\n", remoteAddress));
+ }
+
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());
if (deviceSession == null) {
return null;