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

Lowercasization of the Bluetooth Address #794

Closed
wants to merge 1 commit into from

Conversation

ouinouin
Copy link

Hi, here is the pull request to force the bluetooth mac address sent back by the bluetooth processLeAdvertisingReport scan function to be in lower case.
( see noble/noble-device#30 )

@don
Copy link
Member

don commented Jun 8, 2018

toLowerCase() in this code doesn't do anything. The Buffer.toString('hex') returns lower case.

> b = new Buffer([15, 14, 13, 12, 11, 10])
<Buffer 0f 0e 0d 0c 0b 0a>
> b.toString('hex').match(/.{1,2}/g).reverse().join(':')
'0a:0b:0c:0d:0e:0f'

@don don closed this Jun 8, 2018
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

Successfully merging this pull request may close these issues.

2 participants