diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-29 23:27:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 23:27:33 -0700 |
commit | 2f6d252cca600f1a9cf326b13c614d46ee2197b5 (patch) | |
tree | 45e7dfac1d35916f752e11eac1b6838dcc12a51e /src/test/java/org/traccar | |
parent | 36d5da225b4c9e986a8cae1af4133204b148c885 (diff) | |
parent | 11c243661e8c81b7244393277dc257952ff9c4a2 (diff) | |
download | trackermap-server-2f6d252cca600f1a9cf326b13c614d46ee2197b5.tar.gz trackermap-server-2f6d252cca600f1a9cf326b13c614d46ee2197b5.tar.bz2 trackermap-server-2f6d252cca600f1a9cf326b13c614d46ee2197b5.zip |
Merge pull request #4595 from elderstudios/feat/jc400-device-alerts
Added support for JC400 alarm messages
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r-- | src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java index 776a984dc..e6b7b7ce3 100644 --- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java @@ -341,12 +341,21 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest { Position.KEY_ALARM, Position.ALARM_ACCELERATION); verifyAttribute(decoder, binary( - "78780c95130a0209321c90000112800d0a"), - "alarmValue", 1); + "78780c95130a0209321c91000112800d0a"), + Position.KEY_ALARM, Position.ALARM_BRAKING); verifyAttribute(decoder, binary( - "78780c95130a0209321c91000112800d0a"), + "78788b95140a060e2208055D4A800209D9C014c59100004556454e545f3335333337363131303032333139365f30303030303030305f323032305f31305f30365f31365f33345f30385f33322e6d70342c4556454e545f3335333337363131303032333139365f30303030303030305f323032305f31305f30365f31365f33345f30385f33312e6d70340000da360d0a"), Position.KEY_ALARM, Position.ALARM_BRAKING); + + verifyAttribute(decoder, binary( + "78788b95140a070c1434055D4A800209D9C014280100004556454e545f3335333337363131303032333139365f30303030303030305f323032305f31305f30375f31345f32305f35325f32342e6d70342c4556454e545f3335333337363131303032333139365f30303030303030305f323032305f31305f30375f31345f32305f35325f32332e6d7034003f6b260d0a"), + Position.KEY_ALARM, Position.ALARM_SOS); + + verifyAttribute(decoder, binary( + "78785195140a020c2914055D4A800209D9C014009300004556454e545f3335333337363131303032333139365f30303030303030305f323032305f31305f30325f31345f34315f32305f30352e6d70340004e3a60d0a"), + Position.KEY_ALARM, Position.ALARM_ACCIDENT); + } } |