aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-10-14 17:09:55 -0700
committerAnton Tananaev <anton@traccar.org>2023-10-14 17:09:55 -0700
commit170d3a90376805fbb84df7e16af9229899d413a6 (patch)
tree325dd007e968d4828cb533b0f58f0ad7038d374e
parentb9c2d03f189abb7360801952ba69138fdf9fe432 (diff)
downloadtrackermap-server-170d3a90376805fbb84df7e16af9229899d413a6.tar.gz
trackermap-server-170d3a90376805fbb84df7e16af9229899d413a6.tar.bz2
trackermap-server-170d3a90376805fbb84df7e16af9229899d413a6.zip
Support topin message type
-rw-r--r--src/main/java/org/traccar/protocol/TopinProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TopinProtocolDecoder.java b/src/main/java/org/traccar/protocol/TopinProtocolDecoder.java
index b5dd3c4b9..c7b816818 100644
--- a/src/main/java/org/traccar/protocol/TopinProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TopinProtocolDecoder.java
@@ -53,6 +53,7 @@ public class TopinProtocolDecoder extends BaseProtocolDecoder {
public static final int MSG_WIFI_OFFLINE = 0x17;
public static final int MSG_LBS_WIFI = 0x18;
public static final int MSG_LBS_WIFI_OFFLINE = 0x19;
+ public static final int MSG_LBS_WIFI_2 = 0x1A;
public static final int MSG_TIME_UPDATE = 0x30;
public static final int MSG_SOS_NUMBER = 0x41;
public static final int MSG_WIFI = 0x69;
@@ -221,7 +222,7 @@ public class TopinProtocolDecoder extends BaseProtocolDecoder {
return position;
} else if (type == MSG_WIFI || type == MSG_WIFI_OFFLINE
- || type == MSG_LBS_WIFI || type == MSG_LBS_WIFI_OFFLINE) {
+ || type == MSG_LBS_WIFI || type == MSG_LBS_WIFI_2 || type == MSG_LBS_WIFI_OFFLINE) {
Position position = new Position(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());