aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-17 20:28:52 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-17 20:28:52 -0700
commite8741d7ddc28b9c2db3865129368f0a8eaa6b032 (patch)
tree30cd1c4254e8af96e84fe47752784928a2c6c99f /src/test/java
parentb6cdfb459241f0a71f5ff9ce35814656465597dc (diff)
downloadtraccar-server-e8741d7ddc28b9c2db3865129368f0a8eaa6b032.tar.gz
traccar-server-e8741d7ddc28b9c2db3865129368f0a8eaa6b032.tar.bz2
traccar-server-e8741d7ddc28b9c2db3865129368f0a8eaa6b032.zip
Fix battery decoding
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
index 4db80c7ce..8ce9eca78 100644
--- a/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/EskyProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class EskyProtocolDecoderTest extends ProtocolTest {
EskyProtocolDecoder decoder = new EskyProtocolDecoder(null);
verifyAttribute(decoder, text(
+ "ET;0;860337031066546;R;9+200717114059+41.32053+19.80761+0.30+0+0x2+8+40381744+0+1409+11"),
+ Position.KEY_BATTERY, 14.09);
+
+ verifyAttribute(decoder, text(
"ET;0;860337031078319;R;6+190317162511+41.32536+19.83144+0.14+0+0x0+0+18460312+0+1233+192"),
Position.KEY_IGNITION, true);