aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authormerabtenei <i.merabtene.gd@gmail.com>2023-05-29 21:46:54 +0100
committermerabtenei <i.merabtene.gd@gmail.com>2023-05-29 21:46:54 +0100
commit4cf820b3dd4d8686842d36c81ee8ee3e954b2393 (patch)
tree9f7bd7e872031aa5b77954563f5a8aca070c04db /src/main/java/org/traccar
parent9dd1a898277c3304865ff306a7cf306b8b95e44b (diff)
downloadtrackermap-server-4cf820b3dd4d8686842d36c81ee8ee3e954b2393.tar.gz
trackermap-server-4cf820b3dd4d8686842d36c81ee8ee3e954b2393.tar.bz2
trackermap-server-4cf820b3dd4d8686842d36c81ee8ee3e954b2393.zip
added Battery Level as IO 113 in TeltonikaProtocolDecoder.java
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 70d633e19..c6531c790 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -256,6 +256,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
register(89, fmbXXX, (p, b) -> p.set("fuelLevelPercentage", b.readUnsignedByte()));
register(90, null, (p, b) -> p.set(Position.KEY_DOOR, b.readUnsignedShort()));
register(110, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_CONSUMPTION, b.readUnsignedShort() * 0.1));
+ register(113, fmbXXX, (p, b) -> p.set(Position.KEY_BATTERY_LEVEL, b.readUnsignedByte()));
register(179, null, (p, b) -> p.set(Position.PREFIX_OUT + 1, b.readUnsignedByte() > 0));
register(180, null, (p, b) -> p.set(Position.PREFIX_OUT + 2, b.readUnsignedByte() > 0));
register(181, null, (p, b) -> p.set(Position.KEY_PDOP, b.readUnsignedShort() * 0.1));