Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions components/esp_websocket_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@ if(NOT CONFIG_WS_TRANSPORT AND NOT CMAKE_BUILD_EARLY_EXPANSION)
return()
endif()

set(PRIV_INCLUDE_LIST esp_timer)

if(CONFIG_ESP_WS_CLIENT_ENABLE_COMPRESSION AND NOT CMAKE_BUILD_EARLY_EXPANSION)
set(PRIV_INCLUDE_LIST ${PRIV_INCLUDE_LIST} zlib)
endif ()

if(${IDF_TARGET} STREQUAL "linux")
idf_component_register(SRCS "esp_websocket_client.c"
INCLUDE_DIRS "include"
REQUIRES esp-tls tcp_transport http_parser esp_event nvs_flash esp_stubs json
PRIV_REQUIRES esp_timer)
PRIV_REQUIRES ${PRIV_INCLUDE_LIST})
else()
idf_component_register(SRCS "esp_websocket_client.c"
INCLUDE_DIRS "include"
REQUIRES lwip esp-tls tcp_transport http_parser esp_event
PRIV_REQUIRES esp_timer)
PRIV_REQUIRES ${PRIV_INCLUDE_LIST})
endif()
7 changes: 7 additions & 0 deletions components/esp_websocket_client/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ menu "ESP WebSocket client"
default 2000
help
Timeout for acquiring the TX lock when using separate TX lock.

config ESP_WS_CLIENT_ENABLE_COMPRESSION
bool "Enable per-message compression support (RFC7692)"
default n
help
Enable this option will build with zlib, and support RFC7692 per-message DEFLATE compression.

endmenu
Loading