diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-30 16:37:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-30 16:37:19 +1300 |
commit | 735fc1483817da385dce0fb572440261b6a644a3 (patch) | |
tree | 28e3637fc3e4f38379d523045eb07f6e7194af5f /test/org/traccar | |
parent | e8f2247e719e44796a4d89f6973e3a3c0d21568a (diff) | |
download | traccar-server-735fc1483817da385dce0fb572440261b6a644a3.tar.gz traccar-server-735fc1483817da385dce0fb572440261b6a644a3.tar.bz2 traccar-server-735fc1483817da385dce0fb572440261b6a644a3.zip |
Alternative H02 SOS and commands
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/H02ProtocolEncoderTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/H02ProtocolEncoderTest.java b/test/org/traccar/protocol/H02ProtocolEncoderTest.java index e022a7b7e..a7ce3fc7e 100644 --- a/test/org/traccar/protocol/H02ProtocolEncoderTest.java +++ b/test/org/traccar/protocol/H02ProtocolEncoderTest.java @@ -45,7 +45,7 @@ public class H02ProtocolEncoderTest extends ProtocolTest { command.setDeviceId(1); command.setType(Command.TYPE_ENGINE_STOP); - assertEquals("*HQ,123456789012345,S20,010203,1,3,10,3,5,5,3,5,3,5,3,5#", encoder.encodeCommand(command, time)); + assertEquals("*HQ,123456789012345,S20,010203,1,1#", encoder.encodeCommand(command, time)); } @Test @@ -55,7 +55,7 @@ public class H02ProtocolEncoderTest extends ProtocolTest { command.setDeviceId(1); command.setType(Command.TYPE_ENGINE_RESUME); - assertEquals("*HQ,123456789012345,S20,010203,0,0#", encoder.encodeCommand(command, time)); + assertEquals("*HQ,123456789012345,S20,010203,1,0#", encoder.encodeCommand(command, time)); } @Test |