Go to file
Alexandre Trevizoli 25bd585c25
Corrections of Stream.Find, FindUntil and added FindMulti - like AVR-Core Libraries (#3442)
* 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>
2020-10-14 15:20:40 +03:00
.github Update PlatformIO CI script (#4307) 2020-08-31 18:06:34 +03:00
cores/esp32 Corrections of Stream.Find, FindUntil and added FindMulti - like AVR-Core Libraries (#3442) 2020-10-14 15:20:40 +03:00
docs shallow clone to make installation faster (#4246) 2020-10-01 14:43:48 +03:00
libraries Add an aditional (void *) arg to the RMT callback (much like Ticker() et.al.). (#3345) 2020-10-14 14:41:50 +03:00
package Add ARM toolchain 2019-10-01 21:48:03 +03:00
tools Allow using custom linker scripts (#3735) 2020-05-04 16:47:14 +03:00
variants Added the DoIT ESPduino-32 board (#1520) 2020-10-03 03:06:40 +03:00
.gitignore M5Stack's product offering includes various ESP32-based camera devices. (#4030) 2020-06-01 01:41:56 +03:00
.gitmodules Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
.travis.yml Use Github Actions for release (#3309) 2019-10-01 10:44:04 +03:00
boards.txt bugfix (#4389) 2020-10-14 14:30:32 +03:00
CMakeLists.txt Fix missing headers when compiling as IDF component with Cmake (#4377) 2020-10-01 15:45:52 +03:00
component.mk Fix compilation errors when used as IDF component 2019-01-26 21:37:03 +01:00
Kconfig.projbuild Make a selective menuconfig option for FFat (#2966) 2019-07-09 19:14:53 +03:00
LICENSE.md Add LGPL 2.1 License 2019-04-16 03:08:50 +02:00
Makefile.projbuild Remove duplicate ota_data flashing under IDF 2018-08-16 13:34:47 +02:00
package.json Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows (#153) 2017-01-28 14:19:56 +02:00
platform.txt Rename eep -> partitions.bin & hex -> bin (#4143) 2020-10-14 14:34:14 +03:00
programmers.txt initial import 2016-10-06 07:09:44 -06:00
README.md Updated Readme.md (#4400) 2020-10-14 14:26:41 +03:00

Arduino core for the ESP32

Build Status

Need help or have a question? Join the chat at https://gitter.im/espressif/arduino-esp32

Contents

Development Status

Latest Stable Release Release Version Release Date Downloads

Latest Development Release Release Version Release Date Downloads

Installation Instructions

Decoding exceptions

You can use EspExceptionDecoder to get meaningful call trace.

Issue/Bug report template

Before reporting an issue, make sure you've searched for similar one that was already created. Also make sure to go through all the issues labelled as for reference.

Finally, if you are sure no one else had the issue, follow the ISSUE_TEMPLATE while reporting any issue.

ESP32Dev Board PINMAP

Pin Functions

Tip

Sometimes to program ESP32 via serial you must keep GPIO0 LOW during the programming process