diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-24 21:37:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-24 21:38:05 -0700 |
commit | bec490817a2251dc37f727f3a755a20411761993 (patch) | |
tree | ccbfd93aa45f181a9d71ef37d2a2fdc1d50c7f1f /src/main/java/org/traccar/protocol/SuntechProtocol.java | |
parent | e944d60ea05ba527eee3d663c2ec88c9335ae1fb (diff) | |
download | trackermap-server-bec490817a2251dc37f727f3a755a20411761993.tar.gz trackermap-server-bec490817a2251dc37f727f3a755a20411761993.tar.bz2 trackermap-server-bec490817a2251dc37f727f3a755a20411761993.zip |
Implement Suntech frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/SuntechProtocol.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/SuntechProtocol.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocol.java b/src/main/java/org/traccar/protocol/SuntechProtocol.java index 29ae114e7..48d6e81c1 100644 --- a/src/main/java/org/traccar/protocol/SuntechProtocol.java +++ b/src/main/java/org/traccar/protocol/SuntechProtocol.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ package org.traccar.protocol; import io.netty.handler.codec.string.StringDecoder; import io.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; -import org.traccar.CharacterDelimiterFrameDecoder; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; import org.traccar.model.Command; @@ -37,7 +36,7 @@ public class SuntechProtocol extends BaseProtocol { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, '\r')); + pipeline.addLast(new SuntechFrameDecoder()); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); pipeline.addLast(new SuntechProtocolEncoder()); |