25bd585c25
* Corrections of Find, FindUntil and FindMulti Find has some bug that is not working with Ethernet.find() so, I copied code from Stream.h and Stream.cpp in AVR-CORE library and now it's working perfectly. I don't know where was the error, but an Ethernet.find compiled to MEGA2560 was working but not working when compiled to esp32, after corrections of code (copy of AVR-Core libraries) it's working perfect. So probably has some error on original ESP32-Core library. Below is part of code that was working with MEGA2560 and not with ESP32 libraries. client.find never return TRUE with ESP32 original library and with AVR it's works. boolean esp32_fw_update(EthernetClient &client, DecodedHeader &header, const String &field_filename, const String &field_crc) { char bound[header.boundary.length()+3]; char term[]="\r\n"; strcpy(bound,header.boundary.c_str()); strcat(bound,term); while (client.find(bound)) { String line=client.readStringUntil('\r'); * Update Stream.h * Update Stream.cpp Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> |
||
---|---|---|
.. | ||
apps/sntp | ||
libb64 | ||
Arduino.h | ||
base64.cpp | ||
base64.h | ||
binary.h | ||
cbuf.cpp | ||
cbuf.h | ||
Client.h | ||
esp32-hal-adc.c | ||
esp32-hal-adc.h | ||
esp32-hal-bt.c | ||
esp32-hal-bt.h | ||
esp32-hal-cpu.c | ||
esp32-hal-cpu.h | ||
esp32-hal-dac.c | ||
esp32-hal-dac.h | ||
esp32-hal-gpio.c | ||
esp32-hal-gpio.h | ||
esp32-hal-i2c.c | ||
esp32-hal-i2c.h | ||
esp32-hal-ledc.c | ||
esp32-hal-ledc.h | ||
esp32-hal-log.h | ||
esp32-hal-matrix.c | ||
esp32-hal-matrix.h | ||
esp32-hal-misc.c | ||
esp32-hal-psram.c | ||
esp32-hal-psram.h | ||
esp32-hal-rmt.c | ||
esp32-hal-rmt.h | ||
esp32-hal-sigmadelta.c | ||
esp32-hal-sigmadelta.h | ||
esp32-hal-spi.c | ||
esp32-hal-spi.h | ||
esp32-hal-time.c | ||
esp32-hal-timer.c | ||
esp32-hal-timer.h | ||
esp32-hal-touch.c | ||
esp32-hal-touch.h | ||
esp32-hal-uart.c | ||
esp32-hal-uart.h | ||
esp32-hal.h | ||
esp8266-compat.h | ||
Esp.cpp | ||
Esp.h | ||
FunctionalInterrupt.cpp | ||
FunctionalInterrupt.h | ||
HardwareSerial.cpp | ||
HardwareSerial.h | ||
IPAddress.cpp | ||
IPAddress.h | ||
IPv6Address.cpp | ||
IPv6Address.h | ||
main.cpp | ||
MD5Builder.cpp | ||
MD5Builder.h | ||
pgmspace.h | ||
Print.cpp | ||
Print.h | ||
Printable.h | ||
Server.h | ||
stdlib_noniso.c | ||
stdlib_noniso.h | ||
Stream.cpp | ||
Stream.h | ||
StreamString.cpp | ||
StreamString.h | ||
Udp.h | ||
WCharacter.h | ||
wiring_private.h | ||
wiring_pulse.c | ||
wiring_shift.c | ||
WMath.cpp | ||
WString.cpp | ||
WString.h |