aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2024-01-29 06:47:46 -0800
committerGitHub <noreply@github.com>2024-01-29 06:47:46 -0800
commit0968c7a10f1eb78b87fdc96ae7f5a7c3b7524e12 (patch)
tree21d44d77c31e3d07b576c76782e8d17587c42e42 /src/main/java/org/traccar/protocol
parent52dcedfe60e5b9468db16e7d72048595bcdeb98f (diff)
parent04a99c14fc2840f78e988d66c150807abae8bf79 (diff)
downloadtrackermap-server-0968c7a10f1eb78b87fdc96ae7f5a7c3b7524e12.tar.gz
trackermap-server-0968c7a10f1eb78b87fdc96ae7f5a7c3b7524e12.tar.bz2
trackermap-server-0968c7a10f1eb78b87fdc96ae7f5a7c3b7524e12.zip
Merge pull request #5259 from vithanagevms/master
analog input voltage decode
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/UproProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
index ed714e464..915f5adfe 100644
--- a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
@@ -310,6 +310,10 @@ public class UproProtocolDecoder extends BaseProtocolDecoder {
position.set("serial", data.toString(StandardCharsets.US_ASCII).substring(3));
}
break;
+ case 'd':
+ position.set(Position.PREFIX_ADC + 1,
+ (Integer.parseInt(data.toString(StandardCharsets.US_ASCII)) / 100.0));
+ break;
default:
break;
}