diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-12-19 22:15:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-12-19 22:15:09 +1300 |
commit | a506293e4196d480cca8149a7269f1e003ff8f7f (patch) | |
tree | 725afac7463aa02decaa96ddd15ec384c4d8fbad /src/org/traccar/Server.java | |
parent | 58e829a30021e30d51e09fd085d16f6a701b6d98 (diff) | |
download | trackermap-server-a506293e4196d480cca8149a7269f1e003ff8f7f.tar.gz trackermap-server-a506293e4196d480cca8149a7269f1e003ff8f7f.tar.bz2 trackermap-server-a506293e4196d480cca8149a7269f1e003ff8f7f.zip |
Added GT02 support (fix #96)
Diffstat (limited to 'src/org/traccar/Server.java')
-rw-r--r-- | src/org/traccar/Server.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/Server.java b/src/org/traccar/Server.java index 07296d945..96d994fbd 100644 --- a/src/org/traccar/Server.java +++ b/src/org/traccar/Server.java @@ -829,8 +829,8 @@ public class Server { server.setPipelineFactory(new GenericPipelineFactory(server, dataManager, isLoggerEnabled(), resetDelay, geocoder) { protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(4 * 1024, 12, 2, 2, 0)); - pipeline.addLast("objectDecoder", new NavisProtocolDecoder(getDataManager())); + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 1, 2, 0)); + pipeline.addLast("objectDecoder", new Gt02ProtocolDecoder(getDataManager())); } }); |