fix(websocket): esp_websocket_client client allow sending 0 byte packets

This commit is contained in:
Suren Gabrielyan
2023-04-19 14:36:50 +04:00
parent a50f91f422
commit b5177cb23a
2 changed files with 4 additions and 2 deletions

View File

@ -254,6 +254,9 @@ int esp_websocket_client_send_text(esp_websocket_client_handle_t client, const c
* @param[in] len The length
* @param[in] timeout Write data timeout in RTOS ticks
*
* Notes:
* - In order to send a zero payload, data and len should be set to NULL/0
*
* @return
* - Number of data was sent
* - (-1) if any errors