aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WondexProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/WondexProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/WondexProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WondexProtocolDecoder.java b/src/org/traccar/protocol/WondexProtocolDecoder.java
index 90f2e62e9..766bbdbcc 100644
--- a/src/org/traccar/protocol/WondexProtocolDecoder.java
+++ b/src/org/traccar/protocol/WondexProtocolDecoder.java
@@ -45,6 +45,7 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
"(-?\\d+)," + // Altitude
"(\\d+)," + // Satellites
"(\\d+),?" + // Event
+ "(?:(\\d+\\.\\d+)V,)?" + // Battery
"(\\d+\\.\\d+)?,?" + // Milage
"(\\d+)?,?" + // Input
"(\\d+\\.\\d+)?,?" + // ADC1
@@ -102,6 +103,9 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
// Event
extendedInfo.set("event", parser.group(index++));
+ // Battery
+ extendedInfo.set("battery", parser.group(index++));
+
// Milage
extendedInfo.set("milage", parser.group(index++));