aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EgtsProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-26 06:45:10 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-26 15:45:34 +1300
commitd847f80334498bde6993b8f3a38c7df05d83b47b (patch)
tree8a3f5f9a61b388f08f6f523394869e93f99d3ce3 /src/org/traccar/protocol/EgtsProtocol.java
parent4938acc7d9d901eed6b33f047a312b9a89bdd957 (diff)
downloadtrackermap-server-d847f80334498bde6993b8f3a38c7df05d83b47b.tar.gz
trackermap-server-d847f80334498bde6993b8f3a38c7df05d83b47b.tar.bz2
trackermap-server-d847f80334498bde6993b8f3a38c7df05d83b47b.zip
Implement EGTS responses
Diffstat (limited to 'src/org/traccar/protocol/EgtsProtocol.java')
-rw-r--r--src/org/traccar/protocol/EgtsProtocol.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/EgtsProtocol.java b/src/org/traccar/protocol/EgtsProtocol.java
index 0a57f0061..13ec6c9a7 100644
--- a/src/org/traccar/protocol/EgtsProtocol.java
+++ b/src/org/traccar/protocol/EgtsProtocol.java
@@ -20,6 +20,7 @@ import org.jboss.netty.channel.ChannelPipeline;
import org.traccar.BaseProtocol;
import org.traccar.TrackerServer;
+import java.nio.ByteOrder;
import java.util.List;
public class EgtsProtocol extends BaseProtocol {
@@ -30,13 +31,15 @@ public class EgtsProtocol extends BaseProtocol {
@Override
public void initTrackerServers(List<TrackerServer> serverList) {
- serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
+ TrackerServer server = new TrackerServer(new ServerBootstrap(), getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new EgtsFrameDecoder());
pipeline.addLast("objectDecoder", new EgtsProtocolDecoder(EgtsProtocol.this));
}
- });
+ };
+ server.setEndianness(ByteOrder.LITTLE_ENDIAN);
+ serverList.add(server);
}
}