diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-10-25 18:28:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 18:28:59 -0700 |
commit | 78a0df7befc84b7d138b403b137f26f9df379c3d (patch) | |
tree | f4dd5c24f405fa445e946472d2fe156924ffb313 /src | |
parent | eef6c34d403fa5bf2ca0ae757792633c36052769 (diff) | |
parent | fcdec06d0a6b9a742709de967b122ad6213637c1 (diff) | |
download | trackermap-server-78a0df7befc84b7d138b403b137f26f9df379c3d.tar.gz trackermap-server-78a0df7befc84b7d138b403b137f26f9df379c3d.tar.bz2 trackermap-server-78a0df7befc84b7d138b403b137f26f9df379c3d.zip |
Merge pull request #4969 from bharrisau/patch-1
Add CC888 heartbeat packet
Diffstat (limited to 'src')
-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 27555d46d..b6940aecf 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -51,6 +51,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { public static final int MSG_GENERAL_RESPONSE = 0x8001; public static final int MSG_GENERAL_RESPONSE_2 = 0x4401; public static final int MSG_HEARTBEAT = 0x0002; + public static final int MSG_HEARTBEAT_2 = 0x0506; public static final int MSG_TERMINAL_REGISTER = 0x0100; public static final int MSG_TERMINAL_REGISTER_RESPONSE = 0x8100; public static final int MSG_TERMINAL_CONTROL = 0x8105; @@ -224,7 +225,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { formatMessage(MSG_TERMINAL_REGISTER_RESPONSE, id, false, response), remoteAddress)); } - } else if (type == MSG_TERMINAL_AUTH || type == MSG_HEARTBEAT || type == MSG_PHOTO) { + } else if (type == MSG_TERMINAL_AUTH || type == MSG_HEARTBEAT || type == MSG_HEARTBEAT_2 || type == MSG_PHOTO) { sendGeneralResponse(channel, remoteAddress, id, type, index); |