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

onBLECharacteristicValueChange重新进入小程序不发生回调 #130

Open
minghuahuang opened this issue Sep 7, 2022 · 0 comments
Open

Comments

@minghuahuang
Copy link

问题描述
流程一:
正常初始化蓝牙,询问适配器状态,搜索蓝牙列表,手动点击列表中蓝牙设备连接(缓存设备id),......(获取服务id,特征值id等操作),跳转蓝牙状态面板,notify-write,onBLECharacteristicValueChange监听返回数据,正常。
流程二:
重新进入小程序(右上角三个点-重新进入小程序),正常初始化蓝牙,询问适配器状态,搜索蓝牙列表,通过缓存设备id自动连接蓝牙设备,......(获取服务id,特征值id等操作),跳转蓝牙状态面板,notify-write,onBLECharacteristicValueChange未进入回调。notify和write返回{errno: 1509000, errMsg: "notifyBLECharacteristicValueChange:ok"}和{errno: 1509000, errMsg: "writeBLECharacteristicValue:ok"}

复现步骤
这里

预期结果
onBLECharacteristicValueChange正常回调

实际结果
未进入回调

系统信息:

  • 发行平台: 微信小程序
  • 操作系统: iOS 15.6.1
  • uni-app版本 : ^2.0.1-35320220729002

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

@zhetengbiji zhetengbiji transferred this issue from dcloudio/uni-app Feb 2, 2023
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