aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/H02ProtocolEncoder.java
diff options
context:
space:
mode:
authorEdward Valley <ed.valley@yandex.com>2019-07-18 15:12:44 -0400
committerEdward Valley <ed.valley@yandex.com>2019-07-18 15:12:44 -0400
commitad32779b17fd4e480479b3f5702ef62443b8a387 (patch)
tree6e57f6853ed9c14a570c4e49e6faa33760074a1d /src/main/java/org/traccar/protocol/H02ProtocolEncoder.java
parent94fdc382f4cf46e804472f094401d20421d1e1b3 (diff)
downloadtrackermap-server-ad32779b17fd4e480479b3f5702ef62443b8a387.tar.gz
trackermap-server-ad32779b17fd4e480479b3f5702ef62443b8a387.tar.bz2
trackermap-server-ad32779b17fd4e480479b3f5702ef62443b8a387.zip
Update some encoders with hardcoded protocol names and passwords
Diffstat (limited to 'src/main/java/org/traccar/protocol/H02ProtocolEncoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/H02ProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/H02ProtocolEncoder.java b/src/main/java/org/traccar/protocol/H02ProtocolEncoder.java
index 024899abb..7a765332c 100644
--- a/src/main/java/org/traccar/protocol/H02ProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/H02ProtocolEncoder.java
@@ -60,7 +60,7 @@ public class H02ProtocolEncoder extends StringProtocolEncoder {
case Command.TYPE_POSITION_PERIODIC:
String frequency = command.getAttributes().get(Command.KEY_FREQUENCY).toString();
if (Context.getIdentityManager().lookupAttributeBoolean(
- command.getDeviceId(), "h02.alternative", false, false, true)) {
+ command.getDeviceId(), getProtocolName() + ".alternative", false, false, true)) {
return formatCommand(time, uniqueId, "D1", frequency);
} else {
return formatCommand(time, uniqueId, "S71", "22", frequency);