aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-10 07:48:06 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-10 07:48:06 -0800
commit397d959f7dc61d9df241e589910ff4e15d5145d8 (patch)
tree18a150ded7c728b5873a0849328ae68e21a21a17 /src/main/java
parent27a9aabcff99582bab762890ea0c6d4395a532aa (diff)
downloadtrackermap-server-397d959f7dc61d9df241e589910ff4e15d5145d8.tar.gz
trackermap-server-397d959f7dc61d9df241e589910ff4e15d5145d8.tar.bz2
trackermap-server-397d959f7dc61d9df241e589910ff4e15d5145d8.zip
Decode MD500S temperature
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 82c8f0087..bf8ceaf8a 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -528,6 +528,16 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
int id = extension ? buf.readUnsignedShort() : buf.readUnsignedByte();
int length = buf.readUnsignedByte();
switch (id) {
+ case 0x2A:
+ case 0x2B:
+ case 0x2C:
+ case 0x2D:
+ case 0x2E:
+ case 0x2F:
+ case 0x30:
+ case 0x31:
+ position.set(Position.PREFIX_TEMP + buf.readUnsignedByte(), buf.readShortLE() * 0.01);
+ break;
case 0xFE31:
buf.readUnsignedByte(); // alarm protocol
buf.readUnsignedByte(); // alarm type