find_pico_mac_address
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| find_pico_mac_address [2026/08/17 18:48] – [Introduction] walkeradmin | find_pico_mac_address [2026/08/17 18:56] (current) – [Getting the Pico MAC Address] walkeradmin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| * <color # | * <color # | ||
| + | The first three numbers are to identify the manufacturer, | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | ==== Getting the Pico MAC Address ==== | ||
| + | \\ | ||
| + | As with most things Pico/ | ||
| + | |||
| + | < | ||
| + | import network | ||
| + | import ubinascii | ||
| + | |||
| + | wlan = network.WLAN(network.STA_IF) | ||
| + | wlan.active(True) | ||
| + | |||
| + | print(ubinascii.hexlify(wlan.config(' | ||
| + | </ | ||
| + | |||
| + | Save the above code to your Pico as <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | When you run the code in Thonny, you will see something similar to below. | ||
| + | \\ | ||
| + | \\ | ||
| + | {{ : | ||
| + | \\ | ||
| + | As can be seen, the code outputs the Pico MAC Address in to the shell window in Thonny. | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
find_pico_mac_address.1786992503.txt.gz · Last modified: by walkeradmin
