diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-01-29 00:15:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-01-29 00:15:25 +1300 |
commit | 0d4b99dbf74775efa67d12fa34edbf4bb8c357ad (patch) | |
tree | 7fd79f3f2445e39a9c86acefa3b2c6aa5d50fcaf /src/org/traccar/protocol/GlobalSatProtocolDecoder.java | |
parent | 259635880792bf8b14cf26ff5e6f39bd5cc240ac (diff) | |
download | trackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.tar.gz trackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.tar.bz2 trackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.zip |
Parse GlobalSat battery status
Diffstat (limited to 'src/org/traccar/protocol/GlobalSatProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/GlobalSatProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java index 2c808813a..70c1dfe60 100644 --- a/src/org/traccar/protocol/GlobalSatProtocolDecoder.java +++ b/src/org/traccar/protocol/GlobalSatProtocolDecoder.java @@ -162,6 +162,9 @@ public class GlobalSatProtocolDecoder extends BaseProtocolDecoder { case 'K': position.setCourse(Double.valueOf(value)); break; + case 'N': + extendedInfo.set("battery", Double.valueOf(value)); + break; default: // Unsupported break; |