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

Noble does not work after upgrading to MacOS Big Sur #143

Closed
TSonono opened this issue Nov 13, 2020 · 2 comments
Closed

Noble does not work after upgrading to MacOS Big Sur #143

TSonono opened this issue Nov 13, 2020 · 2 comments

Comments

@TSonono
Copy link

TSonono commented Nov 13, 2020

This piece of code results in node giving me "5262 abort node dist/ble_script.js". This only happens after I upgraded to the latest MacOS version (11.0.1).

        noble.on('stateChange', (state: string) => {
            if (state === 'poweredOn') {
                noble.startScanning([], false);
            } else {
                process.exit(0);
            }
@TSonono TSonono closed this as completed Nov 13, 2020
@TSonono TSonono reopened this Nov 13, 2020
@virtualxdriver
Copy link

Could this have anything to do with Bluetooth entitlements?

https://stackoverflow.com/questions/64829740/prompting-for-bluetooth-permission-on-bug-sur-11-0-1

@TSonono
Copy link
Author

TSonono commented Nov 19, 2020

Yes you're right @virtualxdriver! I was able to solve this by going in to to System Preferences -> Security & Privacy -> Privacy and adding iTerm (or I guess Terminal if you're not using iTerm) in the Bluetooth section. Thanks!

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

2 participants