添加MTU的问题
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user