添加MTU的问题
This commit is contained in:
@@ -154,8 +154,11 @@ class LeFuService {
|
|||||||
plugin.ScaleAction.startDataProgress(true)
|
plugin.ScaleAction.startDataProgress(true)
|
||||||
this._activeProtocol = plugin.ScaleAction.getActiveProtocol()
|
this._activeProtocol = plugin.ScaleAction.getActiveProtocol()
|
||||||
this._connectState = plugin.BLUE_STATE.CONNECTSUCCESS
|
this._connectState = plugin.BLUE_STATE.CONNECTSUCCESS
|
||||||
|
this._activeProtocol.codeUpdateMTU((mtuRes: any) => {
|
||||||
|
console.log(TAG, 'codeUpdateMTU:', mtuRes)
|
||||||
this._onDeviceConnectCb?.()
|
this._onDeviceConnectCb?.()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
plugin.bus.subscribe('connectState', (res: string) => {
|
plugin.bus.subscribe('connectState', (res: string) => {
|
||||||
console.log(TAG, 'bus[connectState]:', res)
|
console.log(TAG, 'bus[connectState]:', res)
|
||||||
@@ -291,8 +294,10 @@ class LeFuService {
|
|||||||
res === 23 ? resolve() : reject(new Error(`[LeFu] 配网失败,错误码:${res}`))
|
res === 23 ? resolve() : reject(new Error(`[LeFu] 配网失败,错误码:${res}`))
|
||||||
}
|
}
|
||||||
if (version === 'domain1') {
|
if (version === 'domain1') {
|
||||||
|
console.log(TAG, 'domain1 dataConfigNetWork')
|
||||||
this._activeProtocol.dataConfigNetWork({ domain: LEFU_CONFIG.domain1, ssid, password }, callback)
|
this._activeProtocol.dataConfigNetWork({ domain: LEFU_CONFIG.domain1, ssid, password }, callback)
|
||||||
} else {
|
} else {
|
||||||
|
console.log(TAG, 'domain2 dataConfigUserNetWork')
|
||||||
this._activeProtocol.dataConfigUserNetWork(
|
this._activeProtocol.dataConfigUserNetWork(
|
||||||
{ domain: LEFU_CONFIG.domain2, ssid, password, userName: 'apiUser', userPassword: '3acebb95eb49577e9c2a2082589b9bd6' },
|
{ domain: LEFU_CONFIG.domain2, ssid, password, userName: 'apiUser', userPassword: '3acebb95eb49577e9c2a2082589b9bd6' },
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
Reference in New Issue
Block a user