ESP32 Bluetooth serial does not pair: name, pin and classic versus BLE

Classic Bluetooth serial works only on the original ESP32, not on the S3 or C3. Check your chip.

What the message means

Newer chips have only BLE. Even on the original chip, an old pairing on the phone can block a new connection.

Fix it in this order

  1. Check your chip. Classic Bluetooth serial needs the original ESP32.
  2. Call SerialBT.begin(“name”) in setup and look for that name on the phone.
  3. Remove the old pairing from the phone and pair again.
  4. Check the code partition has enough room, since Bluetooth uses much flash.
  5. Do not run Wi-Fi heavy code and Bluetooth together unless needed.
  6. Use BLE instead if your chip has no classic Bluetooth.

Why it happens

Classic Bluetooth, the profile the BluetoothSerial library uses, exists only on the original ESP32. The S2 has no Bluetooth, and the S3 and C3 have BLE only, so the same sketch compiles on some boards and then never shows up on the phone. Check the exact chip printed on the module.

The library also adds a large amount of code, which is why a small partition scheme can make it fail to build or start. A stale pairing on the phone from an earlier sketch with the same name is a common cause of a connection that will not complete.

If you see this, do this

You seeDo this
Name never appearsChip has no classic Bluetooth, or begin missing.
Pairs once, never againRemove the old pairing.

BLE not visible, HC-05 no response.

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

There are two different Bluetooth technologies on the ESP32 family. Bluetooth Classic carries the Serial Port Profile that the BluetoothSerial library uses. Bluetooth Low Energy, or BLE, is a different protocol with different phone apps. The original ESP32 supports both. The ESP32-S2 has no Bluetooth at all, and the S3 and C3 have BLE only. A sketch using BluetoothSerial will therefore not run on those chips.

Phones add their own rule. Android phones can connect to Classic serial with a serial terminal app. An iPhone cannot use the Serial Port Profile with ordinary third-party devices, so it needs BLE. Android 12 and later also asks for a Nearby devices permission before an app may scan or connect, and without it a scan shows nothing.

How to confirm the cause

  • Print the chip model at start-up with ESP.getChipModel(). Names for S2, S3 and C3 mean there is no Classic Bluetooth.
  • Print the result of SerialBT.begin(). A false result means the stack did not start.
  • Open the phone Bluetooth settings and scan. Classic devices appear in the normal Bluetooth list, not in a BLE scanner app.
  • Check the compile output for sketch size. A message that the sketch is too big means you need a larger partition scheme.
  • Look at the paired devices list for old entries with the same name and remove them.

Worked example

A test sketch that reports the chip and the start result, then echoes received bytes to the serial monitor:

#include "BluetoothSerial.h"
BluetoothSerial SerialBT;

void setup() {
  Serial.begin(115200);
  Serial.println(ESP.getChipModel());          // S2/S3/C3 report their own names
  if (!SerialBT.begin("robot-bt")) Serial.println("Bluetooth start failed");
}

void loop() {
  if (SerialBT.available()) Serial.write(SerialBT.read());
}

Common mistakes

  • Looking for a Classic device in a BLE scanner app.
  • Expecting an iPhone to connect over Classic serial.
  • Ignoring the Android Nearby devices permission.
  • Using the same device name as an earlier test and keeping its stale pairing.
  • Running Wi-Fi, a web server and Bluetooth at once on a board with little free memory.

If this did not fix it

  • Power: Bluetooth bursts can cause a weak supply to dip and reset the board. Check for brownout messages.
  • Partition scheme: choose a larger application partition in the board settings if the build is too large.
  • Distance and interference: test with the phone near the board before looking at other causes.