Skip to content

Commit

Permalink
Support ES310 location message
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Dec 16, 2017
1 parent 84990b9 commit b3e1a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/traccar/protocol/EskyProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public EskyProtocolDecoder(EskyProtocol protocol) {
}

private static final Pattern PATTERN = new PatternBuilder()
.text("EO;") // header
.expression("..;") // header
.number("d+;") // index
.number("(d+);") // imei
.text("R;") // data type
Expand Down
2 changes: 1 addition & 1 deletion test/org/traccar/protocol/EskyProtocolDecoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void testDecode() throws Exception {
verifyPosition(decoder, text(
"EO;0;864906029196626;R;0+170808155352+0.00000+0.00000+0.00+0+0x1+0+0+0+1233"));

verifyNull(decoder, text(
verifyPosition(decoder, text(
"ET;1;014682000989425;R;0+171216001250+33.34405+-111.96682+0.00+0+0x1+0+25598+0+1257+0"));

}
Expand Down

0 comments on commit b3e1a81

Please sign in to comment.