Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Lowercasization of the Bluetooth Address#794

Closed
ouinouin wants to merge 1 commit into
noble:masterfrom
ouinouin:master
Closed

Lowercasization of the Bluetooth Address#794
ouinouin wants to merge 1 commit into
noble:masterfrom
ouinouin:master

Conversation

@ouinouin
Copy link
Copy Markdown

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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants