diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-19 16:32:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-19 16:32:12 -0700 |
commit | d75bda2f95081e49272d9f6cadd89b1ba398f888 (patch) | |
tree | cc611e96f67d3d567329a069f27326cac55c9d17 /src/test/java/org/traccar/protocol | |
parent | 4d37fc1ec3c4d3ba8e9421df08bb40979b19b5db (diff) | |
download | trackermap-server-d75bda2f95081e49272d9f6cadd89b1ba398f888.tar.gz trackermap-server-d75bda2f95081e49272d9f6cadd89b1ba398f888.tar.bz2 trackermap-server-d75bda2f95081e49272d9f6cadd89b1ba398f888.zip |
Better ADC decoding (fix #4899)
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java index d4ecae10a..09ab0440d 100644 --- a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java @@ -11,6 +11,10 @@ public class MeitrackProtocolDecoderTest extends ProtocolTest { var decoder = inject(new MeitrackProtocolDecoder(null)); + verifyAttribute(decoder, buffer( + "$$F160,861412043027965,AAA,22,45.499458,-82.493581,220718171428,V,0,0,0,0,0.0,0,227940,119812,302|220|D8D6|086E1B2B,0000,0000|0000|0000|0191|0573,,,3,,002134,0,0*FA"), + Position.KEY_POWER, 13.95); + verifyPositions(decoder, binary( "2424423233392c3836323039303035303030373436352c4343452c0100000003004300130006050006000700140015801b00080800000900000a00000b0000165105198d011a630540160005024c5e910103590bfe0204922153290c6b2501000dd5b50200004300130006050006000700140015011b00080800000900000a00000b0000165005198d011a630540010005024c5e910103590bfe0204932153290c6b2501000dd6b50200004300130006050006000700140015011b00080800000900000a00000b0000165205198d011a630540230005024c5e910103590bfe0204942153290c6b2501000dd7b50200002a43330d0a")); |