What Profile Does Esp32'S Classic Bluetooth® Support; How Many Stable Connections Can Be Reached For Esp32-C3'S Bluetooth® Le (Ble); How Can I Adjust The Ble Advertising Interval; How Can I Input The Pin Code Via Mobile Phone During Esp32' S Classic Bluetooth Pairing - Espressif Systems ESP Faq

Table of Contents

Advertisement

Chapter 4. Software framework
4.1.41 What profile does ESP32's classic Bluetooth® support?
• Currently, it supports A2DP, AVRCP, SPP, HFP, and HID.
4.1.42 How many stable connections can be reached for ESP32-C3's Bluetooth® LE
(BLE)?
• We recommend the connection number does not exceed four.

4.1.43 How can I adjust the BLE advertising interval?

• The advertising interval is decided by adv_int_min and adv_int_max parameters in BLE advertising
struct, which configures the minimum and maximum advertising interval respectively.
• The advertising interval ranges from 0x0020 to 0x4000 and the default value is 0x0800. The interval time is
the value * 0.625 ms, i.e., 20 ms to 10.24 sec.
• If the values of adv_int_min and adv_int_max are different, the advertising interval is within the range
of the two values. If the values are the same, the interval will be this fixed value.
4.1.44 How can I input the PIN code via mobile phone during ESP32' s Classic Bluetooth
Pairing mode?
You can disable Secure Simple Pairing to support only Legacy Pairing.
• From esp-idf v3.3 to v4.0 (not include v4.0): Component config > Bluetooth > Blue-
droid Enable > [*] Classic Bluetooth > [ ]Secure Simple Pairing
• esp-idf v4.0 and above: Component config > Bluetooth > Bluedroid Options >
[ ] Secure Simple Pairing

4.1.45 How much memory does ESP32 Bluetooth occupy?

• Controller:
– BLE single mode: 40 KB
– BR/EDR single mode: 65 KB
– Dual mode: 120 KB
• Main equipment:
– BLE GATT Client (Gatt Client demo): 24 KB (.bss+.data) + 23 KB (heap) = 47 KB
– BLE GATT Server (GATT Server demo): 23 KB (.bss+.data) + 23 KB (heap) = 46 KB
– BLE GATT Client & GATT Server: 24 KB (.bss+.data) + 24 KB (heap) = 48 KB
– SMP: 5 KB
– Classic
SMP/SDP/A2DP/AVRCP): 48 KB (.bss+.data) + 24 KB (heap) = 72 KB (an additional 13
KB is added when the example is running)
Note: The above heap (Heap) all include the task stack (Task Stack), because the task stack is allocated
from the heap and considered as a heap.
• Optimized PSRAM version:
Espressif Systems
Bluetooth
(Classic
Submit Document Feedback
Bluetooth
A2DP_SINK
51
demo,
including
Release master

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Esp32Esp8266Esp32-s2Esp32-c3Esp32-s3

Table of Contents