diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-04 11:10:55 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-04 11:10:55 +1200 |
commit | 93feb8a5484fd6c4c3da2032d4c843b3194b5ff7 (patch) | |
tree | 65902d2f1e71a776814d66b68d79c3a307febc2b /src/org/traccar/protocol/TotemProtocolDecoder.java | |
parent | 88e777a2ceb50e34dbe9577237483d8d3cebf346 (diff) | |
download | trackermap-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/TotemProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TotemProtocolDecoder.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java index fe39a6344..cf4eaf9af 100644 --- a/src/org/traccar/protocol/TotemProtocolDecoder.java +++ b/src/org/traccar/protocol/TotemProtocolDecoder.java @@ -231,20 +231,20 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder { position.set(Event.KEY_HDOP, parser.group(index++)); // IO Status - position.set("io", parser.group(index++)); + position.set(Event.PREFIX_IO + 1, parser.group(index++)); // Power position.set(Event.KEY_BATTERY, parser.group(index++)); position.set(Event.KEY_POWER, Double.valueOf(parser.group(index++))); // ADC - position.set("adc", parser.group(index++)); + position.set(Event.PREFIX_ADC + 1, parser.group(index++)); // Location Code position.set(Event.KEY_LAC, parser.group(index++)); // Temperature - position.set(Event.KEY_TEMPERATURE, parser.group(index++)); + position.set(Event.PREFIX_TEMP + 1, parser.group(index++)); // Odometer position.set(Event.KEY_ODOMETER, parser.group(index++)); @@ -263,19 +263,19 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder { position.setTime(time.getTime()); // IO Status - position.set("io", parser.group(index++)); + position.set(Event.PREFIX_IO + 1, parser.group(index++)); // Power position.set(Event.KEY_BATTERY, Double.valueOf(parser.group(index++)) / 10); position.set(Event.KEY_POWER, Double.valueOf(parser.group(index++))); // ADC - position.set("adc1", parser.group(index++)); - position.set("adc2", parser.group(index++)); + position.set(Event.PREFIX_ADC + 1, parser.group(index++)); + position.set(Event.PREFIX_ADC + 2, parser.group(index++)); // Temperature - position.set("temperature1", parser.group(index++)); - position.set("temperature2", parser.group(index++)); + position.set(Event.PREFIX_TEMP + 1, parser.group(index++)); + position.set(Event.PREFIX_TEMP + 2, parser.group(index++)); // Location Code position.set(Event.KEY_LAC, parser.group(index++)); |