-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All Https type stations result in "Request (URL) failed!" when use Bluetooth code #940
Comments
I removed all the "s" from the addresses. Some stations don't support this, like Tonic Ska Radio. Others redirect to the Https: address.
|
Oh, thanks! I've never been able to use Platformio, something in my attempts to install it and in my head doesn't work properly with it. It's like they say here in Brazil: 'our saints didn't cross'. I'll try one more time! |
I have updated my template. https://github.com/schreibfaul1/ESP32_Arduino_ESPIDF |
I believe I solved it without needing Platformio (I ran into library issues again): there seems to be a dispute for memory between WiFi and Bluetooth. Well, since my device has a 'radio mode' and a 'bluetooth mode', I freed the memory supposedly allocated for Bluetooth when in radio (WiFi) mode, and vice versa:
All stations now work normally with all libraries updated! Thank you very much! |
I ran some tests using a function from the ESP32 API to measure the amount of SRAM released when doing esp_bt_controller_mem_release(ESP_BT_MODE_BTDM), and, on average, it released 36KB. It seems to be enough for HTTPS streams to work properly. |
Sounds good, good luck with your project! |
I finally updated the library and the ESP32-Arduino. The ESP32-Arduino version I was using was 2.0.11. I did this after a fresh installation of Arduino IDE 2.3.4. It compiled normally and worked as expected.
However, all the stations whose address was "Https" resulted in "Request (URL) failed!".
The code is:
I did an experiment by removing the "Bluetooth" part of the project and they started working again.
The code was as follows:
I imagine that the "Bluetooth" portion of the code does not interfere with the internet connection via WiFi, since the "Http" addresses (without the "s") work. What could be interfering with Https? Or is it the size of the code that leaves little memory for these addresses?
The text was updated successfully, but these errors were encountered: