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

Investigate BLE scanning not working on MacOS 12 #57

Closed
sureshjoshi opened this issue Jan 10, 2022 · 2 comments · Fixed by #60
Closed

Investigate BLE scanning not working on MacOS 12 #57

sureshjoshi opened this issue Jan 10, 2022 · 2 comments · Fixed by #60

Comments

@sureshjoshi
Copy link
Member

Everything works fine on iPad, iOS, and Catalyst - but Swift command line apps on Mac OS 12 are no longer scanning.

Refs:
https://stackoverflow.com/questions/69661809/no-name-or-address-cbcentralmanager-no-longer-working-on-macos-12
https://developer.apple.com/forums/thread/687703
hbldh/bleak#635
hbldh/bleak#720
tinygo-org/bluetooth#88

Still need to test on a device that advertises

@sureshjoshi
Copy link
Member Author

sureshjoshi commented Jan 11, 2022

Confirmed that I can scan for and discover BLE devices if they have an advertised service that I can find via:

centralManager.scanForPeripherals(withServices: [CBUUID(string: "180A")], options: [CBCentralManagerScanOptionAllowDuplicatesKey: true])

In this case, I exposed 180A (Device information service) just for the sake of something simple.

@sureshjoshi
Copy link
Member Author

I didn't appear to run into any problems here anymore. Added a Central example, and it can detect seemingly everything around me.

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 a pull request may close this issue.

1 participant