aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-01-29 00:15:25 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-01-29 00:15:25 +1300
commit0d4b99dbf74775efa67d12fa34edbf4bb8c357ad (patch)
tree7fd79f3f2445e39a9c86acefa3b2c6aa5d50fcaf /src/org/traccar
parent259635880792bf8b14cf26ff5e6f39bd5cc240ac (diff)
downloadtrackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.tar.gz
trackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.tar.bz2
trackermap-server-0d4b99dbf74775efa67d12fa34edbf4bb8c357ad.zip
Parse GlobalSat battery status
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/GlobalSatProtocolDecoder.java3
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;