wjc
2025-04-01 31e89a8697d049410c9d8d5c333cba33223bc9dc
sdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
@@ -132,12 +132,12 @@
    public synchronized UdpSocketBoot initUdp() {
        try {
            if (udpSocketBoot == null) {
                udpSocketBoot = UdpClient.init("0.0.0.0",UDP_PORT, getUdpOptions());
                udpSocketBoot = UdpClient.init("0.0.0.0", UDP_PORT, getUdpOptions());
                udpSocketBoot.bind();
                bindSuccess=true;
                bindSuccess = true;
            }
        } catch (Exception e) {
            LogUtils.e("初始化网关失败:"+e.getMessage());
            LogUtils.e("初始化网关失败:" + e.getMessage());
            return null;
        }
@@ -284,7 +284,8 @@
//        infoBean.setAccessMode("HDL");
//        infoBean.setOID(getOid());
//        infoBean.setSid(getSid());
////        infoBean.set
    /// /        infoBean.set
//        AuthenticateRequest.VersionBean[] versionBeans = new AuthenticateRequest.VersionBean[]{new AuthenticateRequest.VersionBean("FW", versionString), new AuthenticateRequest.VersionBean("HW", "1956F")};
//        infoBean.setVersions(versionBeans);
//        AuthenticateRequest request = new AuthenticateRequest(IdUtils.getUUId(), time, infoBean, authbean);
@@ -535,7 +536,7 @@
                                //没有绑定的网关或与当前绑定到当前住宅的网关,建立连接。后面如果考虑也显示其它住宅的网关,这个限制要去掉
//                                if(TextUtils.isEmpty(gateway.getHomeId())||gateway.getHomeId().equals(HDLLinkConfig.getInstance().getHomeId())) {
                                    HDLTcpConnect.initTcp(gateway.getIp_address());//初始化TCP连接
                                HDLTcpConnect.initTcp(gateway.getIp_address());//初始化TCP连接
//                                }
                            }
                        }