aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MiniFinderProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocol.java')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocol.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocol.java b/src/org/traccar/protocol/MiniFinderProtocol.java
index d237fe0aa..bdd3337ed 100644
--- a/src/org/traccar/protocol/MiniFinderProtocol.java
+++ b/src/org/traccar/protocol/MiniFinderProtocol.java
@@ -22,12 +22,23 @@ import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.TrackerServer;
+import org.traccar.model.Command;
+
import java.util.List;
public class MiniFinderProtocol extends BaseProtocol {
public MiniFinderProtocol() {
super("minifinder");
+ setSupportedCommands(
+ Command.TYPE_SET_TIMEZONE,
+ Command.TYPE_VOICE_MONITORING,
+ Command.TYPE_ALARM_SPEED,
+ Command.TYPE_ALARM_GEOFENCE,
+ Command.TYPE_SET_AGPS,
+ Command.TYPE_ALARM_FALL,
+ Command.TYPE_MODE_POWER_SAVING,
+ Command.TYPE_MODE_DEEP_SLEEP);
}
@Override
@@ -38,6 +49,7 @@ public class MiniFinderProtocol extends BaseProtocol {
pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, ';'));
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("objectEncoder", new MiniFinderProtocolEncoder());
pipeline.addLast("objectDecoder", new MiniFinderProtocolDecoder(MiniFinderProtocol.this));
}
});