diff options
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)); } }); |