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

macOS Monterey & Big Sur #216

Closed
donavanbecker opened this issue Aug 4, 2021 · 7 comments
Closed

macOS Monterey & Big Sur #216

donavanbecker opened this issue Aug 4, 2021 · 7 comments

Comments

@donavanbecker
Copy link

we are using this in https://github.com/OpenWonderLabs/node-switchbot and on macOS, just can't seem to get it to work.

is anyone else having any issues with macOS?

@ansoni-san
Copy link

I can confirm that no matter what signed entitlements and Info.plist entries I add it just doesn't seem to work on Monterey.

Anyone else tried?

@ansoni-san
Copy link

A scan simply never returns any devices. The debug output simple says scan started, and there are no auth / code sign errors shown in dmesg.

@acstacey
Copy link

I am also having issues in the Monterey beta, debugging with Xcode only shows that it gets as far as calling the scan function but then no discovery callbacks are called. The same code is working on Big Sur.

@acstacey
Copy link

I have been able to get scan responses using node 12 and filtering by the advertised service. But then connection is unreliable.

@ebaauw
Copy link

ebaauw commented Oct 1, 2021

Using noble on NodeJS v14 (latest LTS version). It does do something on macOS, but not reliably. I can only read or write a single characteristic per connected session. I need to disconnect/reconnect to read/write the next characteristic. I cannot get characteristic notifications to work at all. Same code runs without issues on Pi OS. As far as I can tell, it's an issue with the mac bluetooth binding; peripherals are discovered just fine.

Tried Big Sur (11.6) as well as High Sierra (10.13) - I no longer have any older versions.

@acstacey
Copy link

@donavanbecker Did you find a solution? We're still having issues with Monterey

@donavanbecker
Copy link
Author

Added npm, node, and terminal into my system preferences's security&privacy for Bluetooth

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

4 participants