diff options
author | 31neKl31n3N4chtmu51k <31neKl31n3N4chtmu51k@gmail.com> | 2014-05-31 20:48:32 -0300 |
---|---|---|
committer | 31neKl31n3N4chtmu51k <31neKl31n3N4chtmu51k@gmail.com> | 2014-06-02 19:41:27 -0300 |
commit | 8896a8fc4091b8d42ec0601360a482ee6c4271a1 (patch) | |
tree | 05331f5e24db7ea440716efe1f0a2794dc48b31b /src/org | |
parent | 4d46aa335ad0f1985bf42d6a68904e2c594a50cf (diff) | |
download | trackermap-server-8896a8fc4091b8d42ec0601360a482ee6c4271a1.tar.gz trackermap-server-8896a8fc4091b8d42ec0601360a482ee6c4271a1.tar.bz2 trackermap-server-8896a8fc4091b8d42ec0601360a482ee6c4271a1.zip |
fix in v680:
1) trimmed sentence in v680 protocol decoder to fix 'dropped' messages
caused by line feeds that my v680 clone was receiving before the message
itself.
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/V680ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/V680ProtocolDecoder.java b/src/org/traccar/protocol/V680ProtocolDecoder.java index ffdbaeb99..ab70b477e 100644 --- a/src/org/traccar/protocol/V680ProtocolDecoder.java +++ b/src/org/traccar/protocol/V680ProtocolDecoder.java @@ -60,7 +60,8 @@ public class V680ProtocolDecoder extends BaseProtocolDecoder { throws Exception { String sentence = (String) msg; - + sentence = sentence.trim(); + // Detect device ID if (sentence.length() == 16) { String imei = sentence.substring(1, sentence.length()); |