2022-05-12 20:11:46 +08:00
|
|
|
menu "ESP WebSocket client"
|
|
|
|
|
|
|
|
config ESP_WS_CLIENT_ENABLE_DYNAMIC_BUFFER
|
|
|
|
bool "Enable websocket client dynamic buffer for send and receive data"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable this option will reallocated buffer when send or receive data and free them when end of use.
|
|
|
|
This can save about 2 KB memory when no websocket data send and receive.
|
|
|
|
|
2025-07-17 12:45:10 +08:00
|
|
|
config ESP_WS_CLIENT_SEPARATE_TX_LOCK
|
|
|
|
bool "Enable separate tx lock for send and receive data"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable this option will use separate lock for send and receive data.
|
|
|
|
This can avoid the lock contention when send and receive data at the same time.
|
|
|
|
|
|
|
|
config ESP_WS_CLIENT_TX_LOCK_TIMEOUT_MS
|
|
|
|
int "TX lock timeout in milliseconds"
|
|
|
|
depends on ESP_WS_CLIENT_SEPARATE_TX_LOCK
|
|
|
|
default 2000
|
|
|
|
help
|
|
|
|
Timeout for acquiring the TX lock when using separate TX lock.
|
2022-05-12 20:11:46 +08:00
|
|
|
endmenu
|