
Timezone: Europe/London
First you need to import the library "ubinascii" and "network" which are both native to uPython
ubinascii.hexlify(data,separator) converts the data returned from "network.WLAN().config('mac')" to hexadecimal format.
The data is returned as a byte string. Providing the optional separator ":" ensures the values are separated by colons.
The decode() function converts the byte string to ascii.
The try/except block ensures no error halts the program should something go wrong and ensures the variable "mac" is at least set to something before we try to print it.
IDE editors for programming ESP boards.
Micropython editors
Micropython functionality and libraries.
Micropython.org
Find the uPython firmware for your board.
uPython firmware for development boards.
ESP32 uPython modules and function examples.
Quick reference for the ESP32
Finding the MAC address
Scanning and connecting to multiple SSIDsUsing an SD card reader breakout board
OTA Updating running software without interuption
Future articles
Communication between ESPs
Using an Adafruit GPS module
Hassle free web communication with urequests.py.