Skip to content

Conversation

@aykevl
Copy link
Member

@aykevl aykevl commented Nov 27, 2025

The MAC address in the bluetooth.MAC type is little endian, the reverse of what is commonly used. The usual way a MAC address is printed is big endian. To simplify code, the Address() method will return the address in the usual (big endian) format.

Feel free to bikeshed on the name, I don't know whether Address really captures it well. Also, perhaps we should make the underlying data type private at some point? Though that may break existing users.

The MAC address in the bluetooth.MAC type is little endian, the reverse
of what is commonly used. The usual way a MAC address is printed is big
endian. To simplify code, the Address() method will return the address
in the usual (big endian) format.
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