| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | public boolean checkIfCertified(){ |
| | | return AuthenticateConfig.getInstance().checkIfCertified(); |
| | | return HDLLinkConfig.getInstance().checkIfCertified(); |
| | | } |
| | | |
| | | /** |
| | |
| | | HDLAuthSocket.getInstance().sendAuthenticateRequest(ip,request,callBack); |
| | | } |
| | | |
| | | /** |
| | | * 搜索指定网关是否在线,搜索到则返回指定的网关对象 |
| | | * |
| | | * @param callBack 回调 |
| | | */ |
| | | public void searchGateway(HDLAuthSocket.SearchGatewayCallBack callBack) { |
| | | HDLAuthSocket.getInstance().searchGateway(HDLLinkConfig.getInstance().getGatewayId(), callBack); |
| | | } |
| | | } |