Skip to content

Commit

Permalink
Rename protocol from auru to auro
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jan 6, 2016
1 parent f1282f6 commit 4bd9a1a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
<entry key='watch.port'>5093</entry>
<entry key='t800x.port'>5094</entry>
<entry key='upro.port'>5095</entry>
<entry key='auru.port'>5096</entry>
<entry key='auro.port'>5096</entry>
<entry key='disha.port'>5097</entry>
<entry key='thinkrace.port'>5098</entry>
<entry key='pathaway.port'>5099</entry>
Expand Down
2 changes: 1 addition & 1 deletion setup/unix/traccar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
<entry key='watch.port'>5093</entry>
<entry key='t800x.port'>5094</entry>
<entry key='upro.port'>5095</entry>
<entry key='auru.port'>5096</entry>
<entry key='auro.port'>5096</entry>
<entry key='disha.port'>5097</entry>
<entry key='thinkrace.port'>5098</entry>
<entry key='pathaway.port'>5099</entry>
Expand Down
2 changes: 1 addition & 1 deletion setup/windows/traccar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
<entry key='watch.port'>5093</entry>
<entry key='t800x.port'>5094</entry>
<entry key='upro.port'>5095</entry>
<entry key='auru.port'>5096</entry>
<entry key='auro.port'>5096</entry>
<entry key='disha.port'>5097</entry>
<entry key='thinkrace.port'>5098</entry>
<entry key='pathaway.port'>5099</entry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

import java.util.List;

public class AuruProtocol extends BaseProtocol {
public class AuroProtocol extends BaseProtocol {

public AuruProtocol() {
super("auru");
public AuroProtocol() {
super("auro");
}

@Override
Expand All @@ -37,7 +37,7 @@ public void initTrackerServers(List<TrackerServer> serverList) {
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(1024));
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("objectDecoder", new AuruProtocolDecoder(AuruProtocol.this));
pipeline.addLast("objectDecoder", new AuroProtocolDecoder(AuroProtocol.this));
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import java.net.SocketAddress;
import java.util.regex.Pattern;

public class AuruProtocolDecoder extends BaseProtocolDecoder {
public class AuroProtocolDecoder extends BaseProtocolDecoder {

public AuruProtocolDecoder(AuruProtocol protocol) {
public AuroProtocolDecoder(AuroProtocol protocol) {
super(protocol);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import org.junit.Test;
import org.traccar.ProtocolTest;

public class AuruProtocolDecoderTest extends ProtocolTest {
public class AuroProtocolDecoderTest extends ProtocolTest {

@Test
public void testDecode() throws Exception {

AuruProtocolDecoder decoder = new AuruProtocolDecoder(new AuruProtocol());
AuroProtocolDecoder decoder = new AuroProtocolDecoder(new AuroProtocol());

verifyPosition(decoder, text(
"M0028T0000816398975I357325031465123E00001W*****110620150437000068DA#RD01DA240000000001+100408425+013756121100620152137231112240330004400"));
Expand Down
2 changes: 1 addition & 1 deletion tools/opengts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<entry key='watch.port'>5093</entry>
<entry key='t800x.port'>5094</entry>
<entry key='upro.port'>5095</entry>
<entry key='auru.port'>5096</entry>
<entry key='auro.port'>5096</entry>
<entry key='disha.port'>5097</entry>
<entry key='thinkrace.port'>5098</entry>
<entry key='pathaway.port'>5099</entry>
Expand Down

0 comments on commit 4bd9a1a

Please sign in to comment.