aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-07 11:43:25 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-07 11:43:54 -0700
commit7a4f5abd6c0ce56032f8e095e94ff4acf170aef6 (patch)
tree8dcda52ce13d5bd96f693287fd49c15958a0fa1d /src/main/java/org/traccar
parent6202fdd44ece635f2b97386d1db82e0572e838c0 (diff)
downloadtraccar-server-7a4f5abd6c0ce56032f8e095e94ff4acf170aef6.tar.gz
traccar-server-7a4f5abd6c0ce56032f8e095e94ff4acf170aef6.tar.bz2
traccar-server-7a4f5abd6c0ce56032f8e095e94ff4acf170aef6.zip
Support extended heartbeat
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
index a6fd94b83..41d76f37f 100644
--- a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -412,7 +412,8 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
return decodeNew(deviceSession, buf, type, index);
- } else if (type == MSG_HEARTBEAT && buf.readableBytes() >= 2) {
+ } else if (type == MSG_HEARTBEAT && buf.readableBytes() >= 2
+ || type == MSG_OBD && buf.readableBytes() == 4) {
Position position = new Position(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());