Switching to I2S and A2DP when blutooth speaker no longer exist #1832
-
A2DP StreamCopy copier implementation has limitation A2DPcopier.copy that even Bluetooth speaker does not exist for longer , the function loops infinite connecting & disconnecting cycle so coming out of that loop becomes difficult , isConnected gives value 0 but can not use to connect I2Scopier.copy . Used millis() logic, setActive flag , but failed . if any one has any recomendation please inform me |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
I have no clue what you talk about! Try to describe what you are doing and what your problem is in a way that can be understood and reproduced by others! |
Beta Was this translation helpful? Give feedback.
-
This is getting even more confusing: I still don't understand what you try to do and what your problem is! |
Beta Was this translation helpful? Give feedback.
-
Input ( RX) received ESP32 Node MCU copying for output either to Bluetooth speaker(a2dpStream) or directly to i2S wired to speaker(i2s) . Both work individual call copier.copy () calling function. implementing logic if Bluetooth speaker disconnected copier.copy () try to connect for infinite loop want to break that loop for example after 10 second and switch it to directly to i2S wired to speaker(i2s) . |
Beta Was this translation helpful? Give feedback.
-
Just don't call copy() if a2dp is not connected! |
Beta Was this translation helpful? Give feedback.
-
this is okay first time , but in between Bluetooth speaker battery get exhausted, then copier.copy does not come out from connecting , disconnecting loop is limitation |
Beta Was this translation helpful? Give feedback.
-
I have added the tx_write_timeout_ms to the A2DPConfig. By default (with value -1) it is blocking endlessly. |
Beta Was this translation helpful? Give feedback.
I have no clue what you talk about!
Neither A2DPcopier nor I2Scopier is anything I have ever implemented!
Try to describe what you are doing and what your problem is in a way that can be understood and reproduced by others!