aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-24 09:27:14 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-24 09:27:14 -0800
commit3771dd156efb068b2f6ba586ec5b951985c40cc5 (patch)
tree4f30862dc6741ffcc25b55af36e732448a2531fa /src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java
parent4722f9b6b6489ea7e9dea0c01ae1d7d3044310b5 (diff)
downloadtrackermap-server-3771dd156efb068b2f6ba586ec5b951985c40cc5.tar.gz
trackermap-server-3771dd156efb068b2f6ba586ec5b951985c40cc5.tar.bz2
trackermap-server-3771dd156efb068b2f6ba586ec5b951985c40cc5.zip
Handle new watch format
Diffstat (limited to 'src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java
index 0ffe81976..09dd46101 100644
--- a/src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/WatchProtocolDecoderTest.java
@@ -17,6 +17,9 @@ public class WatchProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new WatchProtocolDecoder(null));
+ verifyPosition(decoder, buffer(
+ "[SG*9059011020*006b*UD2,240123,162011,A,54.427621,N,6.409190,W,0.00,0,0,8,19,88,0,0,00000000,1,1,FFFF,FFFF,FFFE,3B882A2,132,,00]"));
+
verifyAttribute(decoder, buffer(
"[ZJ*5678901234*0001*0009*TEMP,36.5]"),
Position.PREFIX_TEMP + 1, 36.5);