Skip to content
New issue

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

MHBluetoothLE.connect 无返回数据 #143

Open
RideShi opened this issue Jan 9, 2019 · 3 comments
Open

MHBluetoothLE.connect 无返回数据 #143

RideShi opened this issue Jan 9, 2019 · 3 comments

Comments

@RideShi
Copy link

RideShi commented Jan 9, 2019

Bug Report

实际现象
给设备升级,进行DFU升级时,MHBluetoothLE.connect无返回,重连也一样无返回数据

期望表现
可以连接上或者返回数据

环境

  • app版本: [e.g. v6.0.0/db]
  • 相关模块和API: [e.g. MHPluginSDK.saveInfo]
    MHBluetoothLE.connect
    复现步骤
  1. 进行升级操作,设备端升级之后,DFU升级查询到服务并搜索到设备,进行连接,偶现无返回数据现象,但是出现之后会形成必现问题(此时设备端升级成功在重启设备)
    b54c3fea45147569bfc5e241fb22df49

其他的上下文/日志/截图

提供更多的上下文,有日志或者截图更好。

尝试过的解决办法
连接时可能会接收到centralManager_didDisconnectPeripheral_error通知,尝试以下解决办法
1、延时5秒之后进行MHBluetoothLE.connect,没有效果
2、主动断开与设备端连接,然后进行MHBluetoothLE.connect,没有效果

@RideShi
Copy link
Author

RideShi commented Jan 9, 2019

wechat5c231510fd1df4f75fbaa073dd84d233

@RideShi
Copy link
Author

RideShi commented Jan 9, 2019

connectDevice 方法返回是连接状态,但是connect方法返回不一样

@RideShi
Copy link
Author

RideShi commented Jan 22, 2019

查到设备处于connecting和disconnecting无法连接或者断开连接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant