diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-11 19:08:26 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-11 19:08:26 -0700 |
commit | fad34efb33168af205f47869d5525b3c1c4343a2 (patch) | |
tree | d05b706daf939fdd9c5ef96afd8316ee65b46a37 /src/main/java/org/traccar | |
parent | f089fe842ad3fb69550bcb65fee2f0377cc7bab0 (diff) | |
download | trackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.tar.gz trackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.tar.bz2 trackermap-server-fad34efb33168af205f47869d5525b3c1c4343a2.zip |
Add photo response
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 3 |
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); |