Skip to content
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

WiFiClientSecure fails just by having the Audio object created #679

Closed
codegrue opened this issue Feb 13, 2024 · 4 comments
Closed

WiFiClientSecure fails just by having the Audio object created #679

codegrue opened this issue Feb 13, 2024 · 4 comments
Labels

Comments

@codegrue
Copy link

Doing nothing more than having this line:

Audio audio;

Causes all SSL API calls to fail with either memory issue or certificate verification failure:

[start_ssl_client():273]: (-9984) X509 - Certificate verification failed, e.g. CRL, CA or signature check failed

I suspected the heap getting too small, but I still have 40000 bytes. Are there any known interactions between ESP32-audioI2S and WifiClientSecure?

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 15, 2024
@codegrue
Copy link
Author

I did confirm that this was a memory related issue. I was unable to get Audio to use PSRAM, and WifiClientSecure also was using main heap. I did figure out how to solve the second item, but I still suspect Audio won't use it because implementing it as a global variable, it get's created before the ESP32 PSRAM can be initialized in app_main(void). I did end up moving to a different audio stack before I was able to solve it, so I'm not sure if the technique would work where you create Audio as a static in a function (on first use essentially) rather than as a global.

@kungfupizza
Copy link

@codegrue Can I ask how were you able to move audio task as a static function?
Also, what other audio stack did you move to?

@codegrue
Copy link
Author

I was not able to get the Audio to work. The library I switched to is:

https://github.com/pschatzmann/arduino-audio-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants