hxb
2021-12-07 05552c8b73a16b69aded2d4d877fa968c29e7cce
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/config/HDLLinkConfig.java
@@ -28,7 +28,6 @@
     * instance
     */
    private volatile static HDLLinkConfig instance;
    /**
     * getInstance
     *
@@ -72,7 +71,6 @@
    /**
     * 保存配置
     *
     * @param localSecret
     * @param gatewayId
     * @param ipAddress
@@ -88,7 +86,6 @@
    /**
     * 检测是否已经认证过
     *
     * @return
     */
    public boolean checkIfCertified() {
@@ -130,18 +127,10 @@
    public void setCurrentGateway(GatewaySearchBean currentGateway) {
        this.currentGateway = currentGateway;
        if (this.currentGateway != null && !TextUtils.isEmpty(this.currentGateway.getIp_address())) {
            if (!this.ipAddress.equals(this.currentGateway.getIp_address())) {
                //如果IP地址有变化则更新
                this.ipAddress = this.currentGateway.getIp_address();
                SPUtils.put(AUTHENTICATE_IPADDRESS_KEY, ipAddress);
            }
        }
    }
    /**
     * 判断当前主题数据是否需要加密
     *
     * @param topicStr 当前主题
     * @return
     */
@@ -156,7 +145,6 @@
    /**
     * 拼接网关ID获取完整的主题
     *
     * @param topicStr
     * @return
     */