aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-05-29 16:35:23 -0700
committerGitHub <noreply@github.com>2023-05-29 16:35:23 -0700
commitf7ea4c3829a8ca982af4ce6999f63d212769119d (patch)
tree9f7bd7e872031aa5b77954563f5a8aca070c04db /src/main/java
parent9dd1a898277c3304865ff306a7cf306b8b95e44b (diff)
parent4cf820b3dd4d8686842d36c81ee8ee3e954b2393 (diff)
downloadtrackermap-server-f7ea4c3829a8ca982af4ce6999f63d212769119d.tar.gz
trackermap-server-f7ea4c3829a8ca982af4ce6999f63d212769119d.tar.bz2
trackermap-server-f7ea4c3829a8ca982af4ce6999f63d212769119d.zip
Merge pull request #5098 from merabtenei/teltonika-battery-level
added Battery Level as IO 113 in Teltonika
Diffstat (limited to 'src/main/java')
-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));