Page 1 of 1

Esp32S3 : How to get the BLE Mac Address ?

Posted: Thu Sep 25, 2025 10:06 am
by ThomasESP32
Good morning,


I am working with an Esp32S3 and I would like to get the BLE Mac Address of the chip.

Is there any command or something that I can use to get this BLE Mac Address ?


Best regards,

Thomas TRUILHE

Re: Esp32S3 : How to get the BLE Mac Address ?

Posted: Fri Sep 26, 2025 5:50 pm
by Minatel
Hi,
Please take a look at our FAQ.
How can I get the MAC address of Bluetooth® devices for ESP32?


You will need something like this:

Code: Select all

#include "esp_system.h"

uint8_t mac[6];
esp_read_mac(mac, ESP_MAC_BT); // ESP_MAC_BT is the type for Bluetooth MAC