aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:27:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:27:23 +1200
commit57aec3786c265baac375720e5c5389035f12591b (patch)
tree18f4afc99aad4b5af2b6c2526cbde635e8cddb18 /src/org/traccar/protocol/MeitrackProtocolDecoder.java
parent93feb8a5484fd6c4c3da2032d4c843b3194b5ff7 (diff)
downloadtrackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.gz
trackermap-server-57aec3786c265baac375720e5c5389035f12591b.tar.bz2
trackermap-server-57aec3786c265baac375720e5c5389035f12591b.zip
More other data cleanup
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
index f9dfcd1f2..8bfd21145 100644
--- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -137,7 +137,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_ODOMETER, parser.group(index++));
position.set("runtime", parser.group(index++));
position.set(Event.KEY_CELL, parser.group(index++));
- position.set("state", parser.group(index++));
+ position.set(Event.KEY_STATUS, parser.group(index++));
// ADC
String adc1 = parser.group(index++);
@@ -160,7 +160,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
if (data != null && !data.isEmpty()) {
switch (event) {
case 37:
- position.set("rfid", data);
+ position.set(Event.KEY_RFID, data);
break;
}
}
@@ -232,7 +232,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_CELL,
buf.readUnsignedShort() + "|" + buf.readUnsignedShort() + "|" +
buf.readUnsignedShort() + "|" + buf.readUnsignedShort());
- position.set("state", buf.readUnsignedShort());
+ position.set(Event.KEY_STATUS, buf.readUnsignedShort());
// ADC
position.set(Event.PREFIX_ADC + 1, buf.readUnsignedShort());