diff options
author | merabtenei <i.merabtene.gd@gmail.com> | 2023-05-29 21:46:54 +0100 |
---|---|---|
committer | merabtenei <i.merabtene.gd@gmail.com> | 2023-05-29 21:46:54 +0100 |
commit | 4cf820b3dd4d8686842d36c81ee8ee3e954b2393 (patch) | |
tree | 9f7bd7e872031aa5b77954563f5a8aca070c04db /src/main/java | |
parent | 9dd1a898277c3304865ff306a7cf306b8b95e44b (diff) | |
download | trackermap-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')
-rw-r--r-- | src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 1 |
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)); |