diff options
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocol.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocol.java b/src/org/traccar/protocol/MiniFinderProtocol.java index d6b9a0e36..b0cedd6b9 100644 --- a/src/org/traccar/protocol/MiniFinderProtocol.java +++ b/src/org/traccar/protocol/MiniFinderProtocol.java @@ -30,7 +30,7 @@ public class MiniFinderProtocol extends BaseProtocol { public MiniFinderProtocol() { super("minifinder"); - setSupportedCommands(Command.CUSTOM); + setSupportedCommands(Command.TYPE_POSITION_PERIODIC); } @Override @@ -41,7 +41,7 @@ public class MiniFinderProtocol extends BaseProtocol { pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, ';')); pipeline.addLast("stringDecoder", new StringDecoder()); pipeline.addLast("objectDecoder", new MiniFinderProtocolDecoder(MiniFinderProtocol.this)); - pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("objectEncoder", new MiniFinderProtocolEncoder()); } }); } |