aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ApelProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:10:55 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-04 11:10:55 +1200
commit93feb8a5484fd6c4c3da2032d4c843b3194b5ff7 (patch)
tree65902d2f1e71a776814d66b68d79c3a307febc2b /src/org/traccar/protocol/ApelProtocolDecoder.java
parent88e777a2ceb50e34dbe9577237483d8d3cebf346 (diff)
downloadtrackermap-server-93feb8a5484fd6c4c3da2032d4c843b3194b5ff7.tar.gz
trackermap-server-93feb8a5484fd6c4c3da2032d4c843b3194b5ff7.tar.bz2
trackermap-server-93feb8a5484fd6c4c3da2032d4c843b3194b5ff7.zip
Create prefixes for other data
Diffstat (limited to 'src/org/traccar/protocol/ApelProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ApelProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/ApelProtocolDecoder.java b/src/org/traccar/protocol/ApelProtocolDecoder.java
index b814f60e3..6b4e43dbd 100644
--- a/src/org/traccar/protocol/ApelProtocolDecoder.java
+++ b/src/org/traccar/protocol/ApelProtocolDecoder.java
@@ -227,13 +227,13 @@ public class ApelProtocolDecoder extends BaseProtocolDecoder {
// Analog sensors
for (int i = 1; i <= 8; i++) {
- position.set("adc" + i, buf.readUnsignedShort());
+ position.set(Event.PREFIX_ADC + i, buf.readUnsignedShort());
}
// Counters
- position.set("c0", buf.readUnsignedInt());
- position.set("c1", buf.readUnsignedInt());
- position.set("c2", buf.readUnsignedInt());
+ position.set(Event.PREFIX_COUNT + 1, buf.readUnsignedInt());
+ position.set(Event.PREFIX_COUNT + 2, buf.readUnsignedInt());
+ position.set(Event.PREFIX_COUNT + 3, buf.readUnsignedInt());
}
positions.add(position);