feat(websocket): Optimize memory size for websocket client init

This commit is contained in:
yuanjm
2022-05-12 20:11:46 +08:00
parent 9b403d477f
commit 4cefcd3606
2 changed files with 183 additions and 71 deletions

View File

@ -0,0 +1,10 @@
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.
endmenu