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

Get Mac address of connected device #36

Closed
BlackWolf opened this issue Mar 29, 2014 · 3 comments
Closed

Get Mac address of connected device #36

BlackWolf opened this issue Mar 29, 2014 · 3 comments

Comments

@BlackWolf
Copy link

I was wondering if it is currently possible with bleno to retrieve the mac address of a connected central?

@sandeepmistry
Copy link
Collaborator

On Linux, it would be possible with a slight code change to the accept event handling.

See blenoBindings.onAccept, client address needs to be added as an argument to the emit. Pull request would be welcome :)

@BlackWolf
Copy link
Author

ah, that's what I figured from looking at the code, thanks. I noticed, though, that BTLE seems to have a security feature where the mac address is changed every now and then, so I guess it would be useless anyway. thanks, though.

@sandeepmistry
Copy link
Collaborator

Yes, some devices, including iOS use random BT addresses instead of their real public one.

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