User Tools

Site Tools


find_pico_mac_address

This is an old revision of the document!


Find Pico MAC Address

Aug 2026


Introduction


When dealing with Wifi networks, or networks in general, especaially if your WIFI has MAC Address filtering enabled, you will need the MAC Address of your Pico(s).

A MAC Address is a 6 part address that looks like so:

  • 88:a2:9e:01:49:57

The first three numbers are to identify the manufacturer, the last 3 numbers are for the ID of the device. In a layer 3 network (most networks now) we generally use the IP Address of the device, but in purely Layer 2 networks then the MAC addresses are used.


Getting the Pico MAC Address


As with most things Pico/Network we need a Python script. See an example below:

| download
import network
import ubinascii
 
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
 
print(ubinascii.hexlify(wlan.config('mac'), ':').decode())

Save the above code to your Pico as find-mac-address.py

find_pico_mac_address.1786992715.txt.gz · Last modified: by walkeradmin