We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sequenceControl = parseInt(sequenceControl) + 1; if (sequenceControl>=256) sequenceControl=0;
sequenceControl>=256时,在aes加密中,会报错。好几个地方,都需要加上这句判断。
uni.createBLEConnection({ deviceId: options.deviceId, success: function(res) { let platform = uni.getSystemInfoSync().platform if (platform=="android") { uni.setBLEMTU({ deviceId: options.deviceId, mtu: 128 }); } myself.data.deviceId = options.deviceId; xBlufi.notifyDeviceMsgEvent({ type: xBlufi.XBLUFI_TYPE.TYPE_CONNECTED, result: true, data: { deviceId: options.deviceId, name: options.name } }); }, fail: function(res) { // {"type":"0","result":false,"data":{"errno":1509007,"errCode":-1,"errMsg":"createBLEConnection:fail:already connect"}} if (res.errno!=1509007) { myself.data.deviceId = null; xBlufi.notifyDeviceMsgEvent({ type: xBlufi.XBLUFI_TYPE.TYPE_CONNECTED, result: false, data: res }); } } });
fail有种情况是,已连成功,又报错,此时把deviceId = null,后导致判断错误。 我是在xBlufi.XBLUFI_TYPE.TYPE_INIT_ESP32_RESULT时,加了一句 myself.data.deviceId = deviceId // 可能在其它地方,被置空了,以此为准
The text was updated successfully, but these errors were encountered:
感谢分享
Sorry, something went wrong.
No branches or pull requests
sequenceControl>=256时,在aes加密中,会报错。好几个地方,都需要加上这句判断。
fail有种情况是,已连成功,又报错,此时把deviceId = null,后导致判断错误。
我是在xBlufi.XBLUFI_TYPE.TYPE_INIT_ESP32_RESULT时,加了一句
myself.data.deviceId = deviceId // 可能在其它地方,被置空了,以此为准
The text was updated successfully, but these errors were encountered: