From b4be185da201f2ad10bc13a3ec1b3d8464fdfadc Mon Sep 17 00:00:00 2001 From: 5of9 Date: Fri, 2 Jun 2017 21:55:48 +0200 Subject: Update WondexProtocolDecoder.java Didn't show $MSG messages from the tracker, example hex: 2017-06-02 21:43:43 DEBUG: [BEEC07FB: 5032 < 2.247.253.121] HEX: 244d53473a47534d494e464f3d6e65747a636c75622b2c33302c312c300d0a $MSG:GSMINFO=netzclub+,30,1,0[13][10] --- src/org/traccar/protocol/WondexProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/WondexProtocolDecoder.java b/src/org/traccar/protocol/WondexProtocolDecoder.java index dc334becc..8249d2c68 100644 --- a/src/org/traccar/protocol/WondexProtocolDecoder.java +++ b/src/org/traccar/protocol/WondexProtocolDecoder.java @@ -69,7 +69,8 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder { return null; } else if (buf.toString(StandardCharsets.US_ASCII).startsWith("$OK:") - || buf.toString(StandardCharsets.US_ASCII).startsWith("$ERR:")) { + || buf.toString(StandardCharsets.US_ASCII).startsWith("$ERR:") + || buf.toString(StandardCharsets.US_ASCII).startsWith("$MSG:")) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); -- cgit v1.2.3