aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-30 22:09:37 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-30 22:09:37 -0700
commitb2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6 (patch)
tree4d9241d701440064b2d0a50236a55379652d8095 /src/main/java/org/traccar/protocol
parenteb4e0be40343a6b0cd91b083ba185729f8aed334 (diff)
downloadtrackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.tar.gz
trackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.tar.bz2
trackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.zip
Fix WLI protocol issues
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/WliProtocol.java2
-rw-r--r--src/main/java/org/traccar/protocol/WliProtocolDecoder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/WliProtocol.java b/src/main/java/org/traccar/protocol/WliProtocol.java
index 6573572d3..c10ebf505 100644
--- a/src/main/java/org/traccar/protocol/WliProtocol.java
+++ b/src/main/java/org/traccar/protocol/WliProtocol.java
@@ -26,7 +26,7 @@ public class WliProtocol extends BaseProtocol {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new WliFrameDecoder());
- pipeline.addLast(new Gt02ProtocolDecoder(WliProtocol.this));
+ pipeline.addLast(new WliProtocolDecoder(WliProtocol.this));
}
});
}
diff --git a/src/main/java/org/traccar/protocol/WliProtocolDecoder.java b/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
index fb3d076c1..0e2a0a65e 100644
--- a/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
@@ -123,7 +123,7 @@ public class WliProtocolDecoder extends BaseProtocolDecoder {
} else if (type == '2') {
String id = buf.toString(buf.readerIndex(), buf.readableBytes() - 1, StandardCharsets.US_ASCII);
- getDeviceSession(channel, remoteAddress, id);
+ getDeviceSession(channel, remoteAddress, id.substring("wli:".length()));
return null;
}