aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-15 07:40:15 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-15 07:40:15 -0700
commit553527d9fbe689be243acbf219bed432f15c25e3 (patch)
treea51260c835f6fd154a92da1c3ef3427a30918fc2 /src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
parentb9b2c5c111a56acfab6ac6b5c314f6f0dcb9baec (diff)
downloadtrackermap-server-553527d9fbe689be243acbf219bed432f15c25e3.tar.gz
trackermap-server-553527d9fbe689be243acbf219bed432f15c25e3.tar.bz2
trackermap-server-553527d9fbe689be243acbf219bed432f15c25e3.zip
Decode HHDLink power
Diffstat (limited to 'src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index e6980dc28..4beee7696 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -488,6 +488,9 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_EVENT, buf.readUnsignedShort());
buf.skipBytes(length - 2);
break;
+ case 0x69:
+ position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.01);
+ break;
case 0x80:
buf.readUnsignedByte(); // content
endIndex = buf.writerIndex() - 2;