State = unknown on BLE supported mac
See original GitHub issueHi,
I’m getting started with noble and I found a problem with my simple code
`var noble = require(‘noble’);
console.log(noble.state); noble.on(‘stateChange’, function(state) { if (state === ‘poweredOn’) { console.log(“ebin”) noble.startScanning(); } else noble.stopScanning(); });
noble.on(‘discover’, function(peripheral) { console.log('Found device with local name: ’ + peripheral.advertisement.localName); console.log('advertising the following service uuid's: ’ + peripheral.advertisement.serviceUuids); console.log(); });`
The state never changes “powerOn” and the state is “unknown”. I’m running on Macbook pro 2017 so BLE is supported.
Help needed!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Core Bluetooth CBCentralManager always reports state as ...
I'm running this sample on a Macbook Pro with BLE support and with Bluetooth turned on, using Xcode 7.3. import Foundation import CoreBluetooth ......
Read more >Get MAC address out of BLE packet | Apple Developer Forums
I am currently working on an iOS application based on Bluetooth Low Energy (BLE). How can I get Advertising Address (MAC) out of...
Read more >Configuration parameters - Passive BLE Monitor integration
(MAC address or list of multiple MAC addresses)(Optional) This parameter is used to select the Bluetooth-interface of your Home Assistant host.
Read more >The Ultimate Guide to Apple's Core Bluetooth - Punch Through
unknown – The state of the manager and the app's connection to the ... or for worse) was to obscure a BLE peripheral's...
Read more >Xamarin.Essentials: Permissions - Microsoft Learn
Permission Status · Unknown - The permission is in an unknown state · Denied - The user denied the permission request · Disabled...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
here is a solution --> https://github.com/sandeepmistry/noble/issues/679
just add this to your package.json : “noble”: “git://github.com/jacobrosenthal/noble.git#highsierra”,
instead of noble. works for now. 😃
Closed via https://github.com/sandeepmistry/noble/pull/727.