CelliesProjects / ESP32_VS1053_Stream

A streaming library for Arduino esp32 with a vs1053 mp3/aac/ogg/flac decoder. Plays http, https (insecure mode) and chunked streams and parses the metadata. Also plays ogg and mp3 from sdcard.
MIT License
52 stars 10 forks source link

WifiClient not declared (see also issue #34) #38

Closed Sikkens99 closed 4 weeks ago

Sikkens99 commented 4 weeks ago

I am using Arduino IDE 2.0.4. and I get the error 'WiFiClient' has not been declared' when compiling ESP_32_VS10523_Stream.h This happened before when I compiled with Arduino IDE 3.0.1 but the error dissappeared when I went back to 2.0.17 (see issue #34). Later, for other reasons, I went back to IDE 2.0.4 and the error returned. Now, the Arduino IDE 2.0.17 is not available anymore and I cannot check if this would solve the problem. Anyway, it seems unlikely that the declaration error occurs with all versions of Arduino IDE except 2.0.17. So, what could be the problem? To isolate things I made a sketch solely consisting of #include ESP_32_VS10523_Stream.h and empty setup loop sections. Again this produced the same error, so I think the problem must be in ESP_32_VS10523_Stream.h itself.
Who can help me to resolve this problem?

Sikkens99 commented 4 weeks ago

I got things mixed up: it doesn't hve anything to do with the IDE version but the problem was in the ESP32 Espressif version. I returned to to the ESP2 version 2.0.17 and everything worked fine...