diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-14 06:59:53 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-14 06:59:53 -0800 |
commit | 64391161c1fb03bd9ff5ea30749b4e00230fa8aa (patch) | |
tree | 44ba93ae9f1f2e0058360460fca289189c5116a0 /src/test | |
parent | a87c77da9e8d39856e2a16ae3d3aa385e068a1e8 (diff) | |
download | trackermap-server-64391161c1fb03bd9ff5ea30749b4e00230fa8aa.tar.gz trackermap-server-64391161c1fb03bd9ff5ea30749b4e00230fa8aa.tar.bz2 trackermap-server-64391161c1fb03bd9ff5ea30749b4e00230fa8aa.zip |
Handle Teltonika heartbeat
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java | 2 | ||||
-rw-r--r-- | src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java b/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java index d5c7fcdb0..adc768460 100644 --- a/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java +++ b/src/test/java/org/traccar/protocol/TeltonikaFrameDecoderTest.java @@ -11,7 +11,7 @@ public class TeltonikaFrameDecoderTest extends ProtocolTest { var decoder = inject(new TeltonikaFrameDecoder()); verifyFrame( - binary("000F313233343536373839303132333435"), + binary("ff"), decoder.decode(null, null, binary("FF000F313233343536373839303132333435"))); verifyFrame( diff --git a/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java index 188c4b6eb..ba64642f2 100644 --- a/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/TeltonikaProtocolDecoderTest.java @@ -125,6 +125,9 @@ public class TeltonikaProtocolDecoderTest extends ProtocolTest { verifyPositions(decoder, binary( "000000000000004a08010000015ebc1da508002411926621f15246010b00b913005e000f06ef01f00150011505c800450108b5000bb6000642381b18005ecd0318ce19cd430f5844000001f1000061a900010000c8e1")); + verifyNull(decoder, binary( + "ff")); + decoder.setExtended(true); verifyPositions(decoder, false, binary( |