diff options
author | Anton Tananaev <anton@traccar.org> | 2024-01-26 07:23:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-01-26 07:23:13 -0800 |
commit | 97f0ed1d19bc638ff5866bcdf5163f89801859b0 (patch) | |
tree | cb733b0c34b6a6b9512126a215d7af0fcf992d8e /src/test | |
parent | 29b8caa047b3b1468eb8b21e76f5df8b5c2f6ddb (diff) | |
download | trackermap-server-97f0ed1d19bc638ff5866bcdf5163f89801859b0.tar.gz trackermap-server-97f0ed1d19bc638ff5866bcdf5163f89801859b0.tar.bz2 trackermap-server-97f0ed1d19bc638ff5866bcdf5163f89801859b0.zip |
Add MD500S test case
Diffstat (limited to 'src/test')
-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 24dc9d18e..74a180b11 100644 --- a/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/MeitrackProtocolDecoderTest.java @@ -12,6 +12,10 @@ public class MeitrackProtocolDecoderTest extends ProtocolTest { var decoder = inject(new MeitrackProtocolDecoder(null)); verifyAttribute(decoder, binary( + "24246D3230312C3836393430393036323730323834332C4343452C000000000100A7002A000D05010626070914001502930194009500960097629D209E63A1640E0824000956000A07000B2A001606001704001901001A0E0B91280092280099EF049C52009F1B004023000C0215B9F2FF035855F506041E0F142D0C01708C010D748AC2001C012000009A000000009BD0623E02A0889FF201A2D61A0000A542020000FEF4A3D50900030E0CFE010A007F466FFC0000000049090401000000000000004B0501010232472A44360D0A"), + Position.KEY_HOURS, 644515 * 60000L); + + verifyAttribute(decoder, binary( "2424593136312c3836323039303035303031363139332c4343452c0000000001007f0017000705010607071714001500fe69601b00070800000971000a13000b19001605001acc0440230006029779570103eb5bcc06041ff0e8290c430100000d780400001c01000000030e0ccc010000922781abb90ca4fffe731e0109746e6873656e736f72ac233f6e219064051b753b00000000000000004b060101034c54452a42380d0a"), "tagName", "tnhsensor"); |