diff options
author | Anton Tananaev <anton@traccar.org> | 2023-02-25 16:12:31 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-02-25 16:12:31 -0800 |
commit | dfc546a26f5b7b9486df31ccce812f44bd41168f (patch) | |
tree | 9a6fc2d84659af286685b62b5441a8c9a32c8a41 /src/main/java/org/traccar/protocol | |
parent | 5b77d6297eaf171595ca0eedb50e434eb073c8ac (diff) | |
download | trackermap-server-dfc546a26f5b7b9486df31ccce812f44bd41168f.tar.gz trackermap-server-dfc546a26f5b7b9486df31ccce812f44bd41168f.tar.bz2 trackermap-server-dfc546a26f5b7b9486df31ccce812f44bd41168f.zip |
Meitrack TA255 battery level
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java index 5c5ba4be4..3acd87b8f 100644 --- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -553,6 +553,11 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedByte(); // alarm type buf.skipBytes(length - 2); break; + case 0xFEA8: + buf.readUnsignedByte(); // battery status + position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte()); + buf.readUnsignedByte(); // battery alert + break; default: buf.skipBytes(length); break; |