ESP8266Audio
ESP8266Audio copied to clipboard
Audio playback causing loss of WiFi connection
I don't believe this is an actual issue with your code. (Love this library, btw!) I think my problem is having a Wemos D1 Mini board with sub-standard components. But I thought I'd document it here in case anyone else runs into this.
I tried to deploy my project to a new D1 Mini board today. It's been working on other D1 Mini boards just fine. On this one though, at a certain point in playback (about 15 seconds in), the board would lose wifi access. And then not be able to get it back at all. It was definitely triggered by playing the audio (it doesn't happen until I start the audio), and the wifi disconnect would always happen at the exact same millisecond of the WAV file.
That said, I don't believe the library is the problem. I redeployed the exact same build and filesystem image to another of my (supposedly identical) boards and it works perfectly. So I think it's just a bad board, maybe with bad power management. So if anyone else runs into weird crashes or disconnects, and no software/config changes seem to help, try changing boards.