question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

State = unknown on BLE supported mac

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
mm-nscommented, Jan 15, 2018

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. 😃

0reactions
sandeepmistrycommented, Jan 31, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found