From c05239e7e2ff7947a04132b5ee6776ad2cc102f1 Mon Sep 17 00:00:00 2001 From: 17792275749 <812100002@qq.com> Date: Tue, 19 May 2026 15:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0MTU=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/lefu/service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/miniprogram/lefu/service.ts b/miniprogram/lefu/service.ts index 4048a20..d2753d7 100644 --- a/miniprogram/lefu/service.ts +++ b/miniprogram/lefu/service.ts @@ -154,7 +154,10 @@ class LeFuService { plugin.ScaleAction.startDataProgress(true) this._activeProtocol = plugin.ScaleAction.getActiveProtocol() this._connectState = plugin.BLUE_STATE.CONNECTSUCCESS - this._onDeviceConnectCb?.() + this._activeProtocol.codeUpdateMTU((mtuRes: any) => { + console.log(TAG, 'codeUpdateMTU:', mtuRes) + this._onDeviceConnectCb?.() + }) }) plugin.bus.subscribe('connectState', (res: string) => { @@ -291,8 +294,10 @@ class LeFuService { res === 23 ? resolve() : reject(new Error(`[LeFu] 配网失败,错误码:${res}`)) } if (version === 'domain1') { + console.log(TAG, 'domain1 dataConfigNetWork') this._activeProtocol.dataConfigNetWork({ domain: LEFU_CONFIG.domain1, ssid, password }, callback) } else { + console.log(TAG, 'domain2 dataConfigUserNetWork') this._activeProtocol.dataConfigUserNetWork( { domain: LEFU_CONFIG.domain2, ssid, password, userName: 'apiUser', userPassword: '3acebb95eb49577e9c2a2082589b9bd6' }, callback,