aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/HaicomProtocolDecoder.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/HaicomProtocolDecoder.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/HaicomProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/HaicomProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java
index 303f96793..fc144e934 100644
--- a/src/org/traccar/protocol/HaicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java
@@ -78,7 +78,7 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(getDeviceId());
// Firmware version
- position.set("version", parser.group(index++));
+ position.set(Event.KEY_VERSION, parser.group(index++));
// Date
Calendar time = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
@@ -115,7 +115,7 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
// Additional data
position.set(Event.KEY_STATUS, parser.group(index++));
- position.set("gprs", parser.group(index++));
+ position.set(Event.KEY_GSM, parser.group(index++));
position.set(Event.KEY_GPS, parser.group(index++));
position.set(Event.KEY_INPUT, parser.group(index++));
position.set(Event.KEY_OUTPUT, parser.group(index++));