aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-18 14:12:48 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-18 14:12:48 +1300
commit7dd73afe4fe7f07e93e7fbfbb7ed4e1e4e94d10a (patch)
tree1141646274871fc338edf2f1ab7b734ea9be3d14 /src/org
parent8e69216a16915b5d9ac968928bb01d895e6993dc (diff)
downloadtraccar-server-7dd73afe4fe7f07e93e7fbfbb7ed4e1e4e94d10a.tar.gz
traccar-server-7dd73afe4fe7f07e93e7fbfbb7ed4e1e4e94d10a.tar.bz2
traccar-server-7dd73afe4fe7f07e93e7fbfbb7ed4e1e4e94d10a.zip
Handle BCE command responses
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/BceProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java
index 22877a29b..ed810bebb 100644
--- a/src/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/org/traccar/protocol/BceProtocolDecoder.java
@@ -65,6 +65,11 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
int dataEnd = buf.readUnsignedShortLE() + buf.readerIndex();
int type = buf.readUnsignedByte();
+
+ if (type != MSG_ASYNC_STACK && type != MSG_TIME_TRIGGERED) {
+ return null;
+ }
+
int confirmKey = buf.readUnsignedByte() & 0x7F;
while (buf.readerIndex() < dataEnd) {