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/AplicomProtocolDecoder.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/AplicomProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AplicomProtocolDecoder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index 7170731f5..824c2af26 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -176,10 +176,10 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { // ADC if ((selector & 0x0020) != 0) { - position.set("adc1", buf.readUnsignedShort()); - position.set("adc2", buf.readUnsignedShort()); - position.set("adc3", buf.readUnsignedShort()); - position.set("adc4", buf.readUnsignedShort()); + position.set(Event.PREFIX_ADC + 1, buf.readUnsignedShort()); + position.set(Event.PREFIX_ADC + 2, buf.readUnsignedShort()); + position.set(Event.PREFIX_ADC + 3, buf.readUnsignedShort()); + position.set(Event.PREFIX_ADC + 4, buf.readUnsignedShort()); } // Power @@ -311,7 +311,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { position.set("air-temperature", ChannelBuffers.swapShort(value.readShort()) * 0.1); break; case 0x30D: - position.set("alarms", ChannelBufferTools.readHexString(value, 16)); + position.set(Event.KEY_ALARM, ChannelBufferTools.readHexString(value, 16)); break; case 0x40D: position.set("cold-unit-status", ChannelBufferTools.readHexString(value, 16)); |