Update for ESP32 Arduino 3.x (#685)

Implement the renamed network client and other API changes when built
under the 3.x branch of the Arduino ESP32 core.

Disable building TSF on the ESP32, the Xtensa G++ backend bug is still there.

Minimal changes to get I2S to build under new IDF.  Deprecated but
not removed, so warnings are expected but should not be fatal in
use.

Fixes #683
This commit is contained in:
Earle F. Philhower, III authored and GitHub committed 2024-06-06 14:43:45 -07:00
1 parent b837e7d36a
commit a6141473fb
10 files changed
+40 -11

No files matched your search

+4
View File
@@ -115,7 +115,11 @@ retry:
}
if ((size > 0) && (pos >= size)) return 0;
#if defined(ESP_ARDUINO_VERSION_MAJOR) && ESP_ARDUINO_VERSION_MAJOR >= 3
NetworkClient *stream = http.getStreamPtr();
#else
WiFiClient *stream = http.getStreamPtr();
#endif
// Can't read past EOF...
if ( (size > 0) && (len > (uint32_t)(pos - size)) ) len = pos - size;