diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-21 21:47:06 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-21 21:47:06 +1200 |
commit | 5b853a4a03d9874b62b0cc66f90b840cc13527b0 (patch) | |
tree | e7d9dce05a0bfe23dc19487592db0283bbb84ef4 /src/org | |
parent | eaf1f1eb9c394fbc0dc82d4d2cb04f5d001fbfa4 (diff) | |
download | traccar-server-5b853a4a03d9874b62b0cc66f90b840cc13527b0.tar.gz traccar-server-5b853a4a03d9874b62b0cc66f90b840cc13527b0.tar.bz2 traccar-server-5b853a4a03d9874b62b0cc66f90b840cc13527b0.zip |
Add Totem protocol acknowledgement
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/TotemProtocolDecoder.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java index 5e9557189..358c5cb67 100644 --- a/src/org/traccar/protocol/TotemProtocolDecoder.java +++ b/src/org/traccar/protocol/TotemProtocolDecoder.java @@ -20,10 +20,7 @@ import java.util.Calendar; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; - import org.jboss.netty.channel.Channel; -import org.jboss.netty.channel.ChannelHandlerContext; - import org.traccar.BaseProtocolDecoder; import org.traccar.model.Event; import org.traccar.model.Position; @@ -315,6 +312,10 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(longitude); } + + if (channel != null) { + channel.write("ACK OK\r\n"); + } return position; } |