ESP32 Wi-Fi and Bluetooth together are unstable: share the radio and memory

Wi-Fi and Bluetooth share one radio and one antenna. Running both heavily causes drops and slow transfers.

What the message means

The chip switches the radio between them in time slices. Busy traffic on both, or low memory, leads to disconnects and resets.

Fix it in this order

  1. Reduce traffic on one of them, or use one at a time where you can.
  2. Use BLE instead of classic Bluetooth, since it needs less memory.
  3. Watch the free heap and avoid large buffers.
  4. Keep the supply strong, as radio peaks are high.
  5. Choose a partition scheme with enough room for both stacks.
  6. Use a second board for one of the radios if the project needs both busy.

Why it happens

The ESP32 has one 2.4 GHz radio shared by Wi-Fi and Bluetooth. Espressif’s documentation describes a coexistence scheme that time-shares the radio between them, so heavy use of both reduces throughput and can cause timeouts. Classic Bluetooth and Wi-Fi together also consume a large amount of RAM; BLE needs much less, which is why it is the usual choice when both are needed.

Radio transmit bursts pull a lot of current for a short time. A weak supply or a thin cable makes the voltage dip, and the chip then resets, which can look like a software fault. Watch the free heap over time to tell a memory problem from a power one.

If you see this, do this

You seeDo this
Wi-Fi drops when Bluetooth connectsRadio sharing.
Resets after a whileMemory. Watch the heap.

Wi-Fi keeps disconnecting, web server heap.

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.

Why this happens

The ESP32 has one 2.4 GHz radio that both Wi-Fi and Bluetooth share. The two cannot transmit at the same time, so the chip uses a coexistence scheme that gives each a share of the time. When both are busy, each gets less, so Wi-Fi throughput falls and Bluetooth connections can time out or drop.

Memory is the second limit. Classic Bluetooth and Wi-Fi together take a large part of the RAM, and Bluetooth Low Energy takes much less. If the heap gets too small, the chip fails to allocate buffers and resets or drops connections. A weak supply adds to this, since the radio draws short high-current bursts.

How to confirm the cause

  • Print the free heap and the lowest value it has reached since boot. A low minimum shows how close the board came to running out.
  • Disable one radio and see if the other becomes stable. If it does, the sharing is the issue.
  • Check for resets and read the reset reason. A brownout reset points to the supply, and a panic points to code or memory.
  • Measure the 3.3 V rail or the 5 V input while both radios work. A dip below the board’s minimum causes resets.
  • Check your partition scheme. A scheme with little room for the program leaves less for the two stacks.

Worked example

This prints the heap figures every 5 seconds. If you only need BLE, release the classic Bluetooth memory before starting Bluetooth, which frees part of the RAM for Wi-Fi.

#include "esp_bt.h"
void setup() {
  Serial.begin(115200);
  // BLE only: release classic Bluetooth memory before Bluetooth starts
  esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
}
void loop() {
  Serial.printf("free %u, lowest %u\n",
                ESP.getFreeHeap(), ESP.getMinFreeHeap());
  delay(5000);
}

Common mistakes

  • Using classic Bluetooth when BLE is enough.
  • Sending large buffers over Wi-Fi while Bluetooth is streaming.
  • Powering the board from a weak USB port.
  • Blaming one radio’s library before reading the reset reason.
  • Using a very large JSON or String in the same sketch.

If this did not fix it

  • Wi-Fi power-save settings, which change how often the radio is free for Bluetooth.
  • A radio-heavy environment with many networks on the same channel.
  • Moving one radio to a second board if the project needs both at full rate.