Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Jun 17, 2024
2 parents 99c377d + c43187a commit a4d0393
Show file tree
Hide file tree
Showing 12 changed files with 454 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ jobs:
exit 1;
fi
- name: Get libs cache
uses: actions/cache@v4
with:
key: libs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package/package_esp32_index.template.json', 'tools/get.py') }}
path: |
./tools/dist
./tools/esp32-arduino-libs
./tools/esptool
./tools/mk*
./tools/openocd-esp32
./tools/riscv32-*
./tools/xtensa-*
- name: Compile sketch
uses: P-R-O-C-H-Y/compile-sketches@main
with:
Expand All @@ -73,3 +86,4 @@ jobs:
exit-on-fail: true
sketch-paths:
"- ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
verbose: true
289 changes: 289 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4697,6 +4697,122 @@ lilygo_t_display_s3.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################

lilygo_t_eth_lite.name=LilyGo T-ETH-Lite

lilygo_t_eth_lite.bootloader.tool=esptool_py
lilygo_t_eth_lite.bootloader.tool.default=esptool_py

lilygo_t_eth_lite.upload.tool=esptool_py
lilygo_t_eth_lite.upload.tool.default=esptool_py
lilygo_t_eth_lite.upload.tool.network=esp_ota

lilygo_t_eth_lite.upload.maximum_size=3145728
lilygo_t_eth_lite.upload.maximum_data_size=327680
lilygo_t_eth_lite.upload.speed=921600
lilygo_t_eth_lite.upload.flags=
lilygo_t_eth_lite.upload.extra_flags=
lilygo_t_eth_lite.upload.use_1200bps_touch=false
lilygo_t_eth_lite.upload.wait_for_upload_port=false

lilygo_t_eth_lite.serial.disableDTR=false
lilygo_t_eth_lite.serial.disableRTS=false

lilygo_t_eth_lite.build.tarch=xtensa
lilygo_t_eth_lite.build.bootloader_addr=0x0
lilygo_t_eth_lite.build.target=esp32s3
lilygo_t_eth_lite.build.mcu=esp32s3
lilygo_t_eth_lite.build.core=esp32
lilygo_t_eth_lite.build.variant=lilygo_t_eth_lite
lilygo_t_eth_lite.build.board=LILYGO_T_ETH_LITE

lilygo_t_eth_lite.build.usb_mode=1
lilygo_t_eth_lite.build.cdc_on_boot=0
lilygo_t_eth_lite.build.msc_on_boot=0
lilygo_t_eth_lite.build.dfu_on_boot=0
lilygo_t_eth_lite.build.f_cpu=240000000L
lilygo_t_eth_lite.build.flash_size=16MB
lilygo_t_eth_lite.build.flash_freq=80m
lilygo_t_eth_lite.build.flash_mode=dio
lilygo_t_eth_lite.build.boot=qio
lilygo_t_eth_lite.build.boot_freq=80m
lilygo_t_eth_lite.build.partitions=app3M_fat9M_16MB
lilygo_t_eth_lite.build.defines=
lilygo_t_eth_lite.build.loop_core=
lilygo_t_eth_lite.build.event_core=
lilygo_t_eth_lite.build.psram_type=opi
lilygo_t_eth_lite.build.memory_type={build.boot}_{build.psram_type}

## IDE 2.0 Seems to not update the value
lilygo_t_eth_lite.menu.JTAGAdapter.default=Disabled
lilygo_t_eth_lite.menu.JTAGAdapter.default.build.copy_jtag_files=0
lilygo_t_eth_lite.menu.JTAGAdapter.builtin=Integrated USB JTAG
lilygo_t_eth_lite.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg
lilygo_t_eth_lite.menu.JTAGAdapter.builtin.build.copy_jtag_files=1

lilygo_t_eth_lite.menu.LoopCore.1=Core 1
lilygo_t_eth_lite.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
lilygo_t_eth_lite.menu.LoopCore.0=Core 0
lilygo_t_eth_lite.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0

lilygo_t_eth_lite.menu.EventsCore.1=Core 1
lilygo_t_eth_lite.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
lilygo_t_eth_lite.menu.EventsCore.0=Core 0
lilygo_t_eth_lite.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0

lilygo_t_eth_lite.menu.USBMode.hwcdc=Hardware CDC and JTAG
lilygo_t_eth_lite.menu.USBMode.hwcdc.build.usb_mode=1
lilygo_t_eth_lite.menu.USBMode.default=USB-OTG (TinyUSB)
lilygo_t_eth_lite.menu.USBMode.default.build.usb_mode=0

lilygo_t_eth_lite.menu.CDCOnBoot.default=Disabled
lilygo_t_eth_lite.menu.CDCOnBoot.default.build.cdc_on_boot=0
lilygo_t_eth_lite.menu.CDCOnBoot.cdc=Enabled
lilygo_t_eth_lite.menu.CDCOnBoot.cdc.build.cdc_on_boot=1

lilygo_t_eth_lite.menu.MSCOnBoot.default=Disabled
lilygo_t_eth_lite.menu.MSCOnBoot.default.build.msc_on_boot=0
lilygo_t_eth_lite.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
lilygo_t_eth_lite.menu.MSCOnBoot.msc.build.msc_on_boot=1

lilygo_t_eth_lite.menu.DFUOnBoot.default=Disabled
lilygo_t_eth_lite.menu.DFUOnBoot.default.build.dfu_on_boot=0
lilygo_t_eth_lite.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
lilygo_t_eth_lite.menu.DFUOnBoot.dfu.build.dfu_on_boot=1

lilygo_t_eth_lite.menu.UploadMode.default=UART0 / Hardware CDC
lilygo_t_eth_lite.menu.UploadMode.default.upload.use_1200bps_touch=false
lilygo_t_eth_lite.menu.UploadMode.default.upload.wait_for_upload_port=false
lilygo_t_eth_lite.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
lilygo_t_eth_lite.menu.UploadMode.cdc.upload.use_1200bps_touch=true
lilygo_t_eth_lite.menu.UploadMode.cdc.upload.wait_for_upload_port=true

lilygo_t_eth_lite.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
lilygo_t_eth_lite.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
lilygo_t_eth_lite.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
lilygo_t_eth_lite.menu.PartitionScheme.rainmaker=RainMaker
lilygo_t_eth_lite.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
lilygo_t_eth_lite.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728

lilygo_t_eth_lite.menu.DebugLevel.none=None
lilygo_t_eth_lite.menu.DebugLevel.none.build.code_debug=0
lilygo_t_eth_lite.menu.DebugLevel.error=Error
lilygo_t_eth_lite.menu.DebugLevel.error.build.code_debug=1
lilygo_t_eth_lite.menu.DebugLevel.warn=Warn
lilygo_t_eth_lite.menu.DebugLevel.warn.build.code_debug=2
lilygo_t_eth_lite.menu.DebugLevel.info=Info
lilygo_t_eth_lite.menu.DebugLevel.info.build.code_debug=3
lilygo_t_eth_lite.menu.DebugLevel.debug=Debug
lilygo_t_eth_lite.menu.DebugLevel.debug.build.code_debug=4
lilygo_t_eth_lite.menu.DebugLevel.verbose=Verbose
lilygo_t_eth_lite.menu.DebugLevel.verbose.build.code_debug=5

lilygo_t_eth_lite.menu.EraseFlash.none=Disabled
lilygo_t_eth_lite.menu.EraseFlash.none.upload.erase_cmd=
lilygo_t_eth_lite.menu.EraseFlash.all=Enabled
lilygo_t_eth_lite.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################

micros2.name=microS2
micros2.vid.0=0x239A
micros2.pid.0=0x80C5
Expand Down Expand Up @@ -36821,3 +36937,176 @@ aslcanx2.menu.EraseFlash.all=Enabled
aslcanx2.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################

walter.name=DPTechnics Walter

walter.bootloader.tool=esptool_py
walter.bootloader.tool.default=esptool_py

walter.upload.tool=esptool_py
walter.upload.tool.default=esptool_py
walter.upload.tool.network=esp_ota

walter.upload.maximum_size=1310720
walter.upload.maximum_data_size=327680
walter.upload.flags=
walter.upload.extra_flags=
walter.upload.use_1200bps_touch=false
walter.upload.wait_for_upload_port=false

walter.serial.disableDTR=false
walter.serial.disableRTS=false

walter.build.tarch=xtensa
walter.build.bootloader_addr=0x0
walter.build.target=esp32s3
walter.build.mcu=esp32s3
walter.build.core=esp32
walter.build.variant=walter
walter.build.board=DPTECHNICS_WALTER

walter.build.usb_mode=1
walter.build.cdc_on_boot=1
walter.build.msc_on_boot=0
walter.build.dfu_on_boot=0
walter.build.f_cpu=240000000L
walter.build.flash_size=16MB
walter.build.flash_freq=80m
walter.build.flash_mode=dio
walter.build.boot=qio
walter.build.boot_freq=80m
walter.build.partitions=default
walter.build.defines=
walter.build.loop_core=
walter.build.event_core=
walter.build.psram_type=qspi
walter.build.memory_type={build.boot}_{build.psram_type}

## IDE 2.0 Seems to not update the value
walter.menu.JTAGAdapter.default=Disabled
walter.menu.JTAGAdapter.default.build.copy_jtag_files=0
walter.menu.JTAGAdapter.builtin=Integrated USB JTAG
walter.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg
walter.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
walter.menu.JTAGAdapter.external=FTDI Adapter
walter.menu.JTAGAdapter.external.build.openocdscript=esp32s3-ftdi.cfg
walter.menu.JTAGAdapter.external.build.copy_jtag_files=1
walter.menu.JTAGAdapter.bridge=ESP USB Bridge
walter.menu.JTAGAdapter.bridge.build.openocdscript=esp32s3-bridge.cfg
walter.menu.JTAGAdapter.bridge.build.copy_jtag_files=1

walter.menu.PSRAM.enabled=QSPI PSRAM
walter.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
walter.menu.PSRAM.enabled.build.psram_type=qspi
walter.menu.PSRAM.disabled=Disabled
walter.menu.PSRAM.disabled.build.defines=
walter.menu.PSRAM.disabled.build.psram_type=qspi

walter.menu.FlashMode.qio=QIO 80MHz
walter.menu.FlashMode.qio.build.flash_mode=dio
walter.menu.FlashMode.qio.build.boot=qio
walter.menu.FlashMode.qio.build.boot_freq=80m
walter.menu.FlashMode.qio.build.flash_freq=80m
walter.menu.FlashMode.dio=DIO 80MHz
walter.menu.FlashMode.dio.build.flash_mode=dio
walter.menu.FlashMode.dio.build.boot=dio
walter.menu.FlashMode.dio.build.boot_freq=80m
walter.menu.FlashMode.dio.build.flash_freq=80m

walter.menu.FlashSize.16M=16MB (128Mb)
walter.menu.FlashSize.16M.build.flash_size=16MB

walter.menu.LoopCore.1=Core 1
walter.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
walter.menu.LoopCore.0=Core 0
walter.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0

walter.menu.EventsCore.1=Core 1
walter.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
walter.menu.EventsCore.0=Core 0
walter.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0

walter.menu.USBMode.hwcdc=Hardware CDC and JTAG
walter.menu.USBMode.hwcdc.build.usb_mode=1
walter.menu.USBMode.default=USB-OTG (TinyUSB)
walter.menu.USBMode.default.build.usb_mode=0

walter.menu.CDCOnBoot.cdc=Enabled
walter.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
walter.menu.CDCOnBoot.default=Disabled
walter.menu.CDCOnBoot.default.build.cdc_on_boot=0

walter.menu.MSCOnBoot.default=Disabled
walter.menu.MSCOnBoot.default.build.msc_on_boot=0
walter.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
walter.menu.MSCOnBoot.msc.build.msc_on_boot=1

walter.menu.DFUOnBoot.default=Disabled
walter.menu.DFUOnBoot.default.build.dfu_on_boot=0
walter.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
walter.menu.DFUOnBoot.dfu.build.dfu_on_boot=1

walter.menu.UploadMode.default=UART0 / Hardware CDC
walter.menu.UploadMode.default.upload.use_1200bps_touch=false
walter.menu.UploadMode.default.upload.wait_for_upload_port=false
walter.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
walter.menu.UploadMode.cdc.upload.use_1200bps_touch=true
walter.menu.UploadMode.cdc.upload.wait_for_upload_port=true

walter.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
walter.menu.PartitionScheme.fatflash.build.partitions=ffat
walter.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
walter.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
walter.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
walter.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
walter.menu.PartitionScheme.default_16MB=Default (6.25MB APP/3.43MB SPIFFS)
walter.menu.PartitionScheme.default_16MB.build.partitions=default_16MB
walter.menu.PartitionScheme.default_16MB.upload.maximum_size=6553600

walter.menu.CPUFreq.240=240MHz (WiFi)
walter.menu.CPUFreq.240.build.f_cpu=240000000L
walter.menu.CPUFreq.160=160MHz (WiFi)
walter.menu.CPUFreq.160.build.f_cpu=160000000L
walter.menu.CPUFreq.80=80MHz (WiFi)
walter.menu.CPUFreq.80.build.f_cpu=80000000L
walter.menu.CPUFreq.40=40MHz
walter.menu.CPUFreq.40.build.f_cpu=40000000L
walter.menu.CPUFreq.20=20MHz
walter.menu.CPUFreq.20.build.f_cpu=20000000L
walter.menu.CPUFreq.10=10MHz
walter.menu.CPUFreq.10.build.f_cpu=10000000L

walter.menu.UploadSpeed.921600=921600
walter.menu.UploadSpeed.921600.upload.speed=921600
walter.menu.UploadSpeed.115200=115200
walter.menu.UploadSpeed.115200.upload.speed=115200
walter.menu.UploadSpeed.256000.windows=256000
walter.menu.UploadSpeed.256000.upload.speed=256000
walter.menu.UploadSpeed.230400.windows.upload.speed=256000
walter.menu.UploadSpeed.230400=230400
walter.menu.UploadSpeed.230400.upload.speed=230400
walter.menu.UploadSpeed.460800.linux=460800
walter.menu.UploadSpeed.460800.macosx=460800
walter.menu.UploadSpeed.460800.upload.speed=460800
walter.menu.UploadSpeed.512000.windows=512000
walter.menu.UploadSpeed.512000.upload.speed=512000

walter.menu.DebugLevel.none=None
walter.menu.DebugLevel.none.build.code_debug=0
walter.menu.DebugLevel.error=Error
walter.menu.DebugLevel.error.build.code_debug=1
walter.menu.DebugLevel.warn=Warn
walter.menu.DebugLevel.warn.build.code_debug=2
walter.menu.DebugLevel.info=Info
walter.menu.DebugLevel.info.build.code_debug=3
walter.menu.DebugLevel.debug=Debug
walter.menu.DebugLevel.debug.build.code_debug=4
walter.menu.DebugLevel.verbose=Verbose
walter.menu.DebugLevel.verbose.build.code_debug=5

walter.menu.EraseFlash.none=Disabled
walter.menu.EraseFlash.none.upload.erase_cmd=
walter.menu.EraseFlash.all=Enabled
walter.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################
14 changes: 11 additions & 3 deletions libraries/HTTPClient/src/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,14 @@ void HTTPClient::setUserAgent(const String &userAgent) {
_userAgent = userAgent;
}

/**
* set Accept Encoding Header
* @param acceptEncoding const char *
*/
void HTTPClient::setAcceptEncoding(const String &acceptEncoding) {
_acceptEncoding = acceptEncoding;
}

/**
* set the Authorizatio for the http request
* @param user const char *
Expand Down Expand Up @@ -969,8 +977,8 @@ String HTTPClient::errorToString(int error) {
*/
void HTTPClient::addHeader(const String &name, const String &value, bool first, bool replace) {
// not allow set of Header handled by code
if (!name.equalsIgnoreCase(F("Connection")) && !name.equalsIgnoreCase(F("User-Agent")) && !name.equalsIgnoreCase(F("Host"))
&& !(name.equalsIgnoreCase(F("Authorization")) && _base64Authorization.length())) {
if (!name.equalsIgnoreCase(F("Connection")) && !name.equalsIgnoreCase(F("User-Agent")) && !name.equalsIgnoreCase(F("Accept-Encoding"))
&& !name.equalsIgnoreCase(F("Host")) && !(name.equalsIgnoreCase(F("Authorization")) && _base64Authorization.length())) {

String headerLine = name;
headerLine += ": ";
Expand Down Expand Up @@ -1130,7 +1138,7 @@ bool HTTPClient::sendHeader(const char *type) {
header += "\r\n";

if (!_useHTTP10) {
header += F("Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0\r\n");
header += String(F("Accept-Encoding: ")) + _acceptEncoding + F("\r\n");
}

if (_base64Authorization.length()) {
Expand Down
2 changes: 2 additions & 0 deletions libraries/HTTPClient/src/HTTPClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class HTTPClient {

void setReuse(bool reuse); /// keep-alive
void setUserAgent(const String &userAgent);
void setAcceptEncoding(const String &acceptEncoding);
void setAuthorization(const char *user, const char *password);
void setAuthorization(const char *auth);
void setAuthorizationType(const char *authType);
Expand Down Expand Up @@ -285,6 +286,7 @@ class HTTPClient {
String _userAgent = "ESP32HTTPClient";
String _base64Authorization;
String _authorizationType = "Basic";
String _acceptEncoding = "identity;q=1,chunked;q=0.1,*;q=0";

/// Response handling
RequestArgument *_currentHeaders = nullptr;
Expand Down
6 changes: 4 additions & 2 deletions libraries/NetworkClientSecure/src/NetworkClientSecure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,11 @@ int NetworkClientSecure::available() {
res = data_to_read(sslclient.get());

if (res < 0 && !_stillinPlainStart) {
log_e("Closing connection on failed available check");
if (res != MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) {
log_e("Closing connection on failed available check");
}
stop();
return peeked ? peeked : res;
return peeked;
}
return res + peeked;
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/NetworkClientSecure/src/ssl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const char *pers = "esp32-tls";

static int _handle_error(int err, const char *function, int line) {
if (err == -30848) {
if (err == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) {
return err;
}
#ifdef MBEDTLS_ERROR_C
Expand Down
Loading

0 comments on commit a4d0393

Please sign in to comment.