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

Support for noble.address? #21

Closed
moryoav opened this issue Feb 17, 2020 · 4 comments
Closed

Support for noble.address? #21

moryoav opened this issue Feb 17, 2020 · 4 comments

Comments

@moryoav
Copy link

moryoav commented Feb 17, 2020

Since I'm using an Intel NUC internal bluetooth, I added another bluetooth dongle, Asus BT400, connected with a USB extension cable, because distance is an issue for me. Now, how do I choose which BT device the node calls? I want to force the node to call the BT400 instead of the built in BT.
Is it possible?

@eschava
Copy link
Owner

eschava commented Feb 18, 2020

Documentation for noble states that

hci0 is used by default to override set the NOBLE_HCI_DEVICE_ID environment variable to the interface number.
Example, specify hci1:
sudo NOBLE_HCI_DEVICE_ID=1 node .js

Have you tried that?

@moryoav
Copy link
Author

moryoav commented Feb 19, 2020

Interesting! Any idea how to do that on Windows?

@eschava
Copy link
Owner

eschava commented Feb 19, 2020

you can execute
set NOBLE_HCI_DEVICE_ID=1
in the console before starting node-red (the same console, of course)
or set environment variable globally using this instruction
https://docs.oracle.com/en/database/oracle/r-enterprise/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html#GUID-DD6F9982-60D5-48F6-8270-A27EC53807D0

@moryoav
Copy link
Author

moryoav commented Feb 19, 2020

I will give it a try, thank you!

@eschava eschava closed this as completed Jan 19, 2021
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