Skip to content

fix:解决在没有连接外围设备的情况下,断开连接,没有提示报错:Peripheral not found #48

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

Merged
merged 1 commit into from
May 6, 2025

Conversation

xinxintop
Copy link

@xinxintop xinxintop commented May 5, 2025

Summary

Closes #49
请解释此次更改的 动机,以下是一些帮助您的要点:

  • 这个 PR 解决了哪些 issues?请标记这些 issues,以便合并 PR 后这些 issues 将会被自动关闭。
  • 这个功能是什么?(如果适用)
  • 功能是断开外围设备连接
  • 您是如何实现解决方案的?
  • 在执行这个操作之前,判断是否已经连接,如果已经连接在进行操作,否则给用户提示
  • 这个更改影响了库的哪些部分?

Test Plan

展示代码的稳定性。例如:用来复现场景的命令输入和结果输出、测试用例的路径地址,或者附上截图和视频。

  • [X ] 已经在真机设备或模拟器上测试通过
  • [X ] 已经与 Android 或 iOS 平台做过效果/功能对比
  • [X ] 更新了 JS/TS 代码 (如有)

@xinxintop xinxintop merged commit 97d10ad into react-native-oh-library:sig May 6, 2025
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

Successfully merging this pull request may close these issues.

react_native_ble_manager库,当未连接蓝牙时,点击disconnect按钮,页面不会显示报错,没有提示不能断开连接
2 participants