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

Add method to discover local bluetooth address #110

Open
ollym opened this issue Sep 19, 2016 · 1 comment
Open

Add method to discover local bluetooth address #110

ollym opened this issue Sep 19, 2016 · 1 comment
Assignees

Comments

@ollym
Copy link

ollym commented Sep 19, 2016

@atilag having a lot of success with your BluetoothSerialPortServer, but for my use case I also needed to know the local bluetooth address of the server.

It would be great to get this through a method. In the mean time I'm doing something like:

execSync('hcitool dev').toString().match(/hci0\s+(.+)/)[1].toLowerCase();
@ollym
Copy link
Author

ollym commented Sep 20, 2016

@atilag I'll take a look at doing this myself when I get a chance. Putting this here for reference:

https://github.com/pauloborges/bluez/blob/master/tools/hcitool.c#L77-L88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants