From 7d56179afde21fd2730cda37da164af353f76623 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 12 九月 2025 09:40:07 +0800
Subject: [PATCH] 2025年09月12日09:40:05
---
sdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/sdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java b/sdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
index 3db7fbc..33f8cfe 100644
--- a/sdk/src/main/java/com/hdl/sdk/link/core/connect/HDLUdpConnect.java
+++ b/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());//鍒濆鍖朤CP杩炴帴
+ HDLTcpConnect.initTcp(gateway.getIp_address());//鍒濆鍖朤CP杩炴帴
// }
}
}
--
Gitblit v1.8.0