diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-07-18 15:12:44 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-07-18 15:12:44 -0400 |
commit | ad32779b17fd4e480479b3f5702ef62443b8a387 (patch) | |
tree | 6e57f6853ed9c14a570c4e49e6faa33760074a1d /src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java | |
parent | 94fdc382f4cf46e804472f094401d20421d1e1b3 (diff) | |
download | trackermap-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/HuabaoProtocolEncoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java index c493b49fe..40d07230d 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolEncoder.java @@ -36,7 +36,7 @@ public class HuabaoProtocolEncoder extends BaseProtocolEncoder { protected Object encodeCommand(Command command) { boolean alternative = Context.getIdentityManager().lookupAttributeBoolean( - command.getDeviceId(), "huabao.alternative", false, false, true); + command.getDeviceId(), getProtocolName() + ".alternative", false, false, true); ByteBuf id = Unpooled.wrappedBuffer( DataConverter.parseHex(getUniqueId(command.getDeviceId()))); |