How network.WLAN reports a mac address
Posted: Sun Jun 23, 2019 8:18 pm
I'm just starting to play with my pyboard-D and I am a bit confused how it reports mac addresses. for instance,
>>> w.config('mac')
b'HJ0\x01\xb2\xd0'
I understand that the b' means that it is a byte string and that the H means they are unsigned short integers, but I dont understand why there only seem to be three integers in the mac address. I am used to seeing mac addresses as a group of six integers in hexadecimal, like this, abef:12:34:56. I have just learnt from the internet that the first three integers in a mac address identify the manufacturer, is that why the w.config('mac') only reports three integers? Is the J0 something to do with the manufacturers OUI code? (OUI={Organizationally Unique Identifier}
>>> w.config('mac')
b'HJ0\x01\xb2\xd0'
I understand that the b' means that it is a byte string and that the H means they are unsigned short integers, but I dont understand why there only seem to be three integers in the mac address. I am used to seeing mac addresses as a group of six integers in hexadecimal, like this, abef:12:34:56. I have just learnt from the internet that the first three integers in a mac address identify the manufacturer, is that why the w.config('mac') only reports three integers? Is the J0 something to do with the manufacturers OUI code? (OUI={Organizationally Unique Identifier}