aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-11 19:08:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-11 19:08:26 -0700
commitfad34efb33168af205f47869d5525b3c1c4343a2 (patch)
treed05b706daf939fdd9c5ef96afd8316ee65b46a37 /src
parentf089fe842ad3fb69550bcb65fee2f0377cc7bab0 (diff)
downloadtrackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.tar.gz
trackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.tar.bz2
trackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.zip
Add photo response
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 68da85067..98ab8677f 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -59,6 +59,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
public static final int MSG_OIL_CONTROL = 0XA006;
public static final int MSG_TIME_SYNC_REQUEST = 0x0109;
public static final int MSG_TIME_SYNC_RESPONSE = 0x8109;
+ public static final int MSG_PHOTO = 0x8888;
public static final int RESULT_SUCCESS = 0;
@@ -176,7 +177,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
formatMessage(MSG_TERMINAL_REGISTER_RESPONSE, id, false, response), remoteAddress));
}
- } else if (type == MSG_TERMINAL_AUTH || type == MSG_HEARTBEAT) {
+ } else if (type == MSG_TERMINAL_AUTH || type == MSG_HEARTBEAT || type == MSG_PHOTO) {
sendGeneralResponse(channel, remoteAddress, id, type, index);