diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2024-01-29 06:47:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 06:47:46 -0800 |
commit | 0968c7a10f1eb78b87fdc96ae7f5a7c3b7524e12 (patch) | |
tree | 21d44d77c31e3d07b576c76782e8d17587c42e42 /src/main/java/org | |
parent | 52dcedfe60e5b9468db16e7d72048595bcdeb98f (diff) | |
parent | 04a99c14fc2840f78e988d66c150807abae8bf79 (diff) | |
download | trackermap-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')
-rw-r--r-- | src/main/java/org/traccar/protocol/UproProtocolDecoder.java | 4 |
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; } |