diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-29 16:01:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-29 16:01:47 +1300 |
commit | e8f2247e719e44796a4d89f6973e3a3c0d21568a (patch) | |
tree | 0d3adbfad509349c5ba08f5c241ebae2c1f151a5 /src/org/traccar/protocol/BceProtocol.java | |
parent | 464348b91591a684bc16cf3c207f38ca3f923daa (diff) | |
download | trackermap-server-e8f2247e719e44796a4d89f6973e3a3c0d21568a.tar.gz trackermap-server-e8f2247e719e44796a4d89f6973e3a3c0d21568a.tar.bz2 trackermap-server-e8f2247e719e44796a4d89f6973e3a3c0d21568a.zip |
Implement BCE output control
Diffstat (limited to 'src/org/traccar/protocol/BceProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/BceProtocol.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/BceProtocol.java b/src/org/traccar/protocol/BceProtocol.java index 2078d7da5..6453a05a9 100644 --- a/src/org/traccar/protocol/BceProtocol.java +++ b/src/org/traccar/protocol/BceProtocol.java @@ -18,14 +18,18 @@ package org.traccar.protocol; import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; +import org.traccar.model.Command; public class BceProtocol extends BaseProtocol { public BceProtocol() { + setSupportedDataCommands( + Command.TYPE_OUTPUT_CONTROL); addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new BceFrameDecoder()); + pipeline.addLast(new BceProtocolEncoder()); pipeline.addLast(new BceProtocolDecoder(BceProtocol.this)); } }); |