From 32d613a54f1b36472a9c7386f37079129d2ab812 Mon Sep 17 00:00:00 2001 From: wangfq Date: Wed, 1 Jul 2026 14:02:10 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E5=9C=A8=20WCHNET=5FHandleGlobalInt?= =?UTF-8?q?=20=E4=B8=AD=E6=89=93=E5=8D=B0=20socket=20=E4=B8=AD=E6=96=AD?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 SockInt: sock=%d stat=0x%02X 日志,用于诊断为何 client 连接成功后 CONNECT 事件未被处理 --- vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/net_srv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/net_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/net_srv.c index 245c291..23c6c62 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/net_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/net_srv.c @@ -1075,8 +1075,10 @@ void WCHNET_HandleGlobalInt(void) { for (i = 0; i < WCHNET_MAX_SOCKET_NUM; i++) { socketint = WCHNET_GetSocketInt(i); - if (socketint) + if (socketint) { + PRINT("SockInt: sock=%d stat=0x%02X\n", i, socketint); WCHNET_HandleSockInt(i, socketint); + } } } }