Configuration Parameters |
Selectable Option/value |
Description |
Output MAC address of |
ESP_MAC_WIFI_STA--ESP_MAC_WIFI_SOFTAP--ESP_MAC_BT--ESP_MAC_ETH--ESP_MAC_BASE |
Select type of MAC that need to output from the block |
Port Name |
Port Type |
Data Type |
Description |
UID |
Vector |
uint8 |
port for outputting the selected MAC address |
This block is used to get the unique MAC addresses of the ESP32 device in use.
This block outputs the base MAC address, WIFI STA MAC address, WIFI AP MAC address, Bluetooth MAC address, & Ethernet MAC address, which is factory-programmed by Espressif in BLK0 of EFUSE.
Demo file : esp32_uidread_demo.slx
This demo uses UIDREAD block to read and print base MAC address, WIFI STA MAC address, WIFI AP MAC address, Bluetooth MAC address, & Ethernet MAC address, which is factory-programmed by Espressif in BLK0 of EFUSE.
Remark: If the board is ESP32-S2, the Waijung 2 UIDREAD block used to get Bluetooth MAC address (ESP_MAC_BT) will need to be removed [shown in green above] along with its respective string in the Waijung 2 sprintf block [shown in red above] from the demo file, as there is no Bluetooth support for ESP32-S2.
Note: The serial monitor used for this application is the Putty software which is open source application.
Baud Rate: 115200
When you open a serial monitor, the MAC address should start printing on it.