aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-05 23:21:24 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-05 23:21:24 -0800
commita41841ac8ce200aa0c3836f4c35ce4524eef077c (patch)
tree12877213fc9f53f8eeec14c8320e899fe25d39c9 /src/test
parentcce68c7e6c116dc23a66dde7ca5476ad7ea575b2 (diff)
downloadtraccar-server-a41841ac8ce200aa0c3836f4c35ce4524eef077c.tar.gz
traccar-server-a41841ac8ce200aa0c3836f4c35ce4524eef077c.tar.bz2
traccar-server-a41841ac8ce200aa0c3836f4c35ce4524eef077c.zip
Decode temperature and humidity
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
index e43ff322e..e758725f2 100644
--- a/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
@@ -11,6 +11,9 @@ public class UproProtocolDecoderTest extends ProtocolTest {
UproProtocolDecoder decoder = new UproProtocolDecoder(null);
+ verifyPosition(decoder, buffer(
+ "*HQ201861909268000132,BA&A1820223307024309650492530000311019&B0100000000&F0000&V0036&R0500&J000182&M0052&W00000091&I231026027BD39090827BD5ACA04&X(501E0)(B0000)(E0136)(J01E0)(L3)(k8937204016201240376F)&K00200&T85&N01#"));
+
verifyAttribute(decoder, buffer(
"*VK200867282036729446,BA&A1759265051877702037465660022210819&B0000000000&W00&G000030&M830&N26&O1706&o11&T0783#"),
Position.KEY_BATTERY_LEVEL, 83.0);