My workaround

I scan BLE for a short period of time 3-4 seconds then I turn scan OFF for 3-4 seconds. Then ON again.

  • Obviously I always turn BLE scan OFF when I'm connecting to a BLE device.
  • When I disconnect from a device I restart BLE (turn adapter OFF and then ON) to reset the stack before starting scan again.
  • I also reset BLE when discovering services or characteristics fails.
  • When I get advertisement data from a device that the app should connect to (lets say 500 times without being able to connect - thats about 5-10 seconds of advertising) I reset BLE again.

相关文章:

  • 2021-11-23
  • 2021-11-22
  • 2021-12-17
  • 2021-05-13
  • 2021-12-25
  • 2022-01-16
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2021-09-17
  • 2022-01-02
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案