diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-12 19:23:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-05-12 19:23:04 -0700 |
commit | b607711e6471cc6018c5bbb20a1df7c399bfb878 (patch) | |
tree | 035143f805fbc3b9944572dfaafcb7a019c04a20 /src/test/java/org | |
parent | ad6fef91db91140a59cce596a429c0ae7b95eb2d (diff) | |
download | traccar-server-b607711e6471cc6018c5bbb20a1df7c399bfb878.tar.gz traccar-server-b607711e6471cc6018c5bbb20a1df7c399bfb878.tar.bz2 traccar-server-b607711e6471cc6018c5bbb20a1df7c399bfb878.zip |
Support binary custom command
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/TeltonikaProtocolEncoderTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/TeltonikaProtocolEncoderTest.java b/src/test/java/org/traccar/protocol/TeltonikaProtocolEncoderTest.java index 83ea961b4..0bd4efb72 100644 --- a/src/test/java/org/traccar/protocol/TeltonikaProtocolEncoderTest.java +++ b/src/test/java/org/traccar/protocol/TeltonikaProtocolEncoderTest.java @@ -14,10 +14,13 @@ public class TeltonikaProtocolEncoderTest extends ProtocolTest { Command command = new Command(); command.setDeviceId(1); command.setType(Command.TYPE_CUSTOM); - command.set(Command.KEY_DATA, "setdigout 11"); + command.set(Command.KEY_DATA, "setdigout 11"); verifyCommand(encoder, command, binary("00000000000000160C01050000000E7365746469676F75742031310D0A010000E258")); + command.set(Command.KEY_DATA, "03030000000185E8"); + verifyCommand(encoder, command, binary("00000000000000120c01050000000a03030000000185e80d0a010000cf19")); + } } |