diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-09 16:37:24 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-09 16:37:24 +0500 |
commit | 91cc83f8d09f7ee591c9109e61cee6492226a612 (patch) | |
tree | 12a5f007d2dfbe52c7d5672b9208d64108be1729 /src/org | |
parent | b4185cbf84bdff2927f7d9a8b0cde9f4ea889353 (diff) | |
download | trackermap-server-91cc83f8d09f7ee591c9109e61cee6492226a612.tar.gz trackermap-server-91cc83f8d09f7ee591c9109e61cee6492226a612.tar.bz2 trackermap-server-91cc83f8d09f7ee591c9109e61cee6492226a612.zip |
Also store "result"
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolDecoder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java index 488d05a3c..d74fdbe81 100644 --- a/src/org/traccar/protocol/WatchProtocolDecoder.java +++ b/src/org/traccar/protocol/WatchProtocolDecoder.java @@ -154,7 +154,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { position.setDeviceId(deviceSession.getDeviceId()); getLastLocation(position, new Date()); position.setValid(false); - position.set("pulse", content.split(",")[1]); + String pulse = content.substring(1); + position.set("pulse", pulse); + position.set(Position.KEY_RESULT, pulse); return position; } |