Can't connect to a speaker. How to figure out what's wrong? #500
-
So I tested several examples using this library and also the arduino-audio-tools library. My ESP32-CAM connects without issues to my Sony headphones, but I can't make it connect to my standalone speaker. When I don't provide the device name to connect, even after flashing and restarting, the ESP32 doesn't even try to connect to the speaker (it doesn't show anything). Putting the name of the speaker doesn't help either. My iPhone and Win10 laptop connect to the speaker, even when I remove/forget the BT device in the settings of said iphone/laptop (which I assume means that it is still in pairing mode?). Is there a specific BT version required by the ESP that my speaker doesn't support? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
the debug log shows the following: [ 36773][D][BluetoothA2DPSource.cpp:460] bt_app_gap_callback(): [BT_AV] bt_app_gap_callback evt 0 the first device is the BT speaker. It doesn't show a name (even though it does appear in windows/ios etc). Also the compatibility debug line is missing. The CoD is also different. |
Beta Was this translation helpful? Give feedback.
-
Why don't you just check in the source code. The log even tells you the line that you should look at. |
Beta Was this translation helpful? Give feedback.
-
I suggest you double check if you receive the name with ESP_BT_GAP_DEV_PROP_BDNAME and extend / adjust the logic to cover your case as well. |
Beta Was this translation helpful? Give feedback.
-
Just look at the class documentation! |
Beta Was this translation helpful? Give feedback.
Why don't you just check in the source code. The log even tells you the line that you should look at.
Obviously your device does not provide any eir data, so the name can't be looked up....