aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-10-01 00:06:27 +0200
committerMatjaž Črnko <m.crnko@txt.si>2023-10-01 00:06:27 +0200
commit0ad9b4c84b5eb4b9b58f8ca45adff99526ae193e (patch)
treee54d21307592e5efb059eb2f528b2347c8f525cb /src/main/java
parent65f54c200cf0dcadaa9a1ce685e3eaeb88ce7506 (diff)
downloadtrackermap-server-0ad9b4c84b5eb4b9b58f8ca45adff99526ae193e.tar.gz
trackermap-server-0ad9b4c84b5eb4b9b58f8ca45adff99526ae193e.tar.bz2
trackermap-server-0ad9b4c84b5eb4b9b58f8ca45adff99526ae193e.zip
Ruptela: Support Heartbeat message type
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 649de7c5c..b381b93f8 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -51,6 +51,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
public static final int MSG_SMS_VIA_GPRS = 8;
public static final int MSG_DTCS = 9;
public static final int MSG_IDENTIFICATION = 15;
+ public static final int MSG_HEARTBEAT = 16;
public static final int MSG_SET_IO = 17;
public static final int MSG_FILES = 37;
public static final int MSG_EXTENDED_RECORDS = 68;
@@ -388,7 +389,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
return null;
- } else if (type == MSG_IDENTIFICATION) {
+ } else if (type == MSG_IDENTIFICATION || type == MSG_HEARTBEAT) {
ByteBuf content = Unpooled.buffer();
content.writeByte(1);