添加MTU的问题

This commit is contained in:
17792275749
2026-05-19 15:52:54 +08:00
parent d45adc14c0
commit c05239e7e2
+6 -1
View File
@@ -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,