aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-02 10:47:36 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-02 10:47:36 +1300
commitf5d687b7adb86e259f7b1f3b04a48d625cf1ca5e (patch)
treeeef1f44b391c1237eae0f5beb175b7c5188b7b98 /src/org/traccar/protocol/MeitrackProtocol.java
parentea5d08507fc82073bf198b2c3fffd90870d291d3 (diff)
downloadtrackermap-server-f5d687b7adb86e259f7b1f3b04a48d625cf1ca5e.tar.gz
trackermap-server-f5d687b7adb86e259f7b1f3b04a48d625cf1ca5e.tar.bz2
trackermap-server-f5d687b7adb86e259f7b1f3b04a48d625cf1ca5e.zip
Implement Meitrack photo request
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocol.java')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocol.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocol.java b/src/org/traccar/protocol/MeitrackProtocol.java
index c957d4ea1..266d9bcd5 100644
--- a/src/org/traccar/protocol/MeitrackProtocol.java
+++ b/src/org/traccar/protocol/MeitrackProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,8 @@ public class MeitrackProtocol extends BaseProtocol {
Command.TYPE_ENGINE_STOP,
Command.TYPE_ENGINE_RESUME,
Command.TYPE_ALARM_ARM,
- Command.TYPE_ALARM_DISARM);
+ Command.TYPE_ALARM_DISARM,
+ Command.TYPE_REQUEST_PHOTO);
}
@Override
@@ -45,6 +46,7 @@ public class MeitrackProtocol extends BaseProtocol {
pipeline.addLast("frameDecoder", new MeitrackFrameDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new MeitrackProtocolDecoder(MeitrackProtocol.this));
+ pipeline.addLast("objectEncoder", new MeitrackProtocolEncoder());
}
};
server.setEndianness(ByteOrder.LITTLE_ENDIAN);
@@ -54,6 +56,7 @@ public class MeitrackProtocol extends BaseProtocol {
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new MeitrackProtocolDecoder(MeitrackProtocol.this));
+ pipeline.addLast("objectEncoder", new MeitrackProtocolEncoder());
}
};
server.setEndianness(ByteOrder.LITTLE_ENDIAN);