Comments (1)
I've encountered similar behaviour, and bought a second Bluetooth adapter to resolve it.
My understanding is that you can only have one process running Noble per Bluetooth adapter, otherwise you get these kinds of clashes.
With two Bluetooth adapters, it should work fine.
Multiple adapters
hci0 is used by default. To override, set the
NOBLE_HCI_DEVICE_ID
environment variable to the interface number.
Example, specify hci1:
sudoNOBLE_HCI_DEVICE_ID=1 node <your file>.js
See https://github.com/abandonware/noble#multiple-adapters.
So, set NOBLE_HCI_DEVICE_ID
to a different number (corresponding to different HCI devices) for each process. It works for me this way.
from noble.
Related Issues (20)
- v1.9.2-19 not discovering all peripherals HOT 9
- support bluetooth 5
- @abandonware/noble does not discover any devices HOT 2
- TypeError: Cannot read properties of undefined (reading 'exchangeMtu') HOT 1
- Gets stuck in the function discoverSomeServicesAndCharacteristicsAsync without any errors HOT 1
- Uncaught SyntaxError
- Ubuntu 22.04 Behavior HOT 3
- Installation failing on Windows 11 Pro (error C2039 in winrt) HOT 2
- An error occurred in ubunto
- "No native build was found" for M2 running OSX? HOT 1
- New maintainer in town (bluetooth-hci-socket, noble, bleno) - new features HOT 10
- Link Node JS and Node "File exists" HOT 5
- not support build base python^3.12
- Wrong node-bluetooth-hci-socket version HOT 3
- noble not returning correct data HOT 6
- Can't subscribe more than 1 characteristic at time
- PS5 wireless controller not listed HOT 1
- Unhandled Promise rejection: No Services matching UUID 0000ffe0-0000-1000-8000-00805f9b34fb found in Device.
- Cannot install any version later than 1.9.2-23 on Windows 11 23H2 HOT 2
- Not compatible with Window11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noble.