Why restarting Bluetooth is not possible after memory release ? #8219
Unanswered
dharmikP17
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was actually facing issue while trying to restart the Bluetooth module in ESP32. I have to do this because I want to use Wi-Fi as well.
When I went into library there were few mentions that restart will not work after memory release.
In end process the function for releasing memory is
Here also I see comment that restart will not be possible. This is the A2DP library and I have witnessed same thing with BLE too.
Why is that ? And if I want to start Bluetooth again, restarting ESP is the only option ? if yes why ?
Second thing is there are several deinit methods in above function. What if I took them outside and leave only memory release function in there(after release memory comment part). Will Wi-Fi work then without releasing memory ?
However, in Bluetooth Serial this is not the case, I can end and begin process again without any issue. Again but in Bluetooth Serial end method runs all deinit methods shown above except memory release. So I think it does not need particular mechanics that are necessary for a2dp and BLE, Am I right ?
Beta Was this translation helpful? Give feedback.
All reactions