aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-09 16:37:24 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-09 16:37:24 +0500
commit91cc83f8d09f7ee591c9109e61cee6492226a612 (patch)
tree12a5f007d2dfbe52c7d5672b9208d64108be1729 /src/org/traccar/protocol
parentb4185cbf84bdff2927f7d9a8b0cde9f4ea889353 (diff)
downloadtraccar-server-91cc83f8d09f7ee591c9109e61cee6492226a612.tar.gz
traccar-server-91cc83f8d09f7ee591c9109e61cee6492226a612.tar.bz2
traccar-server-91cc83f8d09f7ee591c9109e61cee6492226a612.zip
Also store "result"
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java4
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;
}