Page 1 of 1

Troubleshooting Bluetooth Connectivity Issue with ESP32 Audio Receiver Setup

Posted: Thu Apr 11, 2024 10:16 am
by ayubaba
Hello everyone,

I'm new to working with ESP32 and I'm trying to set up my ESP32-WROOM-32 board as an audio receiver to receive audio from another device using Bluetooth. I attempted to run the following code with the ESP-A2DP library under Arduino. However, after uploading the code to the board, I'm unable to find the board's Bluetooth on my phone/laptop.

Any assistance would be greatly appreciated.
  1. #include "AudioTools.h"
  2. #include "BluetoothA2DPSink.h"
  3.  
  4. BluetoothA2DPSink a2dp_sink;
  5.  
  6. void setup() {
  7.   Serial.begin(115200);
  8.   // Start Bluetooth Audio Receiver
  9.   a2dp_sink.set_auto_reconnect(false);
  10.   a2dp_sink.start("a2dp-spdif");
  11.  
  12. }
  13.  
  14. void loop() {
  15.   delay(100);
  16. }
  17.