Esp32S3 : How to get the BLE Mac Address ?

ThomasESP32
Posts: 281
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : How to get the BLE Mac Address ?

Postby ThomasESP32 » Thu Sep 25, 2025 10:06 am

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

Minatel
Espressif staff
Espressif staff
Posts: 433
Joined: Mon Jan 04, 2021 2:06 pm

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

Postby Minatel » Fri Sep 26, 2025 5:50 pm

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

Who is online

Users browsing this forum: Applebot, Baidu [Spider], ChatGPT-User, YisouSpider and 3 guests