JLChen
2021-11-15 e7b78e0a428fa54d94c1b274a4305640b2859e80
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/HDLLink.java
@@ -1,6 +1,6 @@
package com.hdl.sdk.connect;
import com.hdl.sdk.common.config.AuthenticateConfig;
import com.hdl.sdk.connect.config.HDLLinkConfig;
import com.hdl.sdk.common.event.EventDispatcher;
import com.hdl.sdk.common.event.EventListener;
import com.hdl.sdk.connect.bean.AuthenticateRequest;
@@ -53,7 +53,7 @@
     * @return
     */
    public boolean checkIfCertified(){
        return AuthenticateConfig.getInstance().checkIfCertified();
        return HDLLinkConfig.getInstance().checkIfCertified();
    }
    /**
@@ -67,4 +67,12 @@
        HDLAuthSocket.getInstance().sendAuthenticateRequest(ip,request,callBack);
    }
    /**
     * 搜索指定网关是否在线,搜索到则返回指定的网关对象
     *
     * @param callBack  回调
     */
    public void searchGateway(HDLAuthSocket.SearchGatewayCallBack callBack) {
        HDLAuthSocket.getInstance().searchGateway(HDLLinkConfig.getInstance().getGatewayId(), callBack);
    }
}