mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-12-21 22:32:48 +01:00
Update IDF and Tools
This commit is contained in:
@@ -310,7 +310,7 @@ esp_err_t esp_transport_set_parent_transport_func(esp_transport_handle_t t, payl
|
||||
* @return
|
||||
* - valid pointer of esp_error_handle_t
|
||||
* - NULL if invalid transport handle
|
||||
*/
|
||||
*/
|
||||
esp_tls_error_handle_t esp_transport_get_error_handle(esp_transport_handle_t t);
|
||||
|
||||
|
||||
|
||||
@@ -117,6 +117,21 @@ ws_transport_opcodes_t esp_transport_ws_get_read_opcode(esp_transport_handle_t t
|
||||
*/
|
||||
int esp_transport_ws_get_read_payload_len(esp_transport_handle_t t);
|
||||
|
||||
/**
|
||||
* @brief Polls the active connection for termination
|
||||
*
|
||||
* This API is typically used by the client to wait for clean connection closure
|
||||
* by websocket server
|
||||
*
|
||||
* @param t Websocket transport handle
|
||||
* @param[in] timeout_ms The timeout milliseconds
|
||||
*
|
||||
* @return
|
||||
* 0 - no activity on read and error socket descriptor within timeout
|
||||
* 1 - Success: either connection terminated by FIN or the most common RST err codes
|
||||
* -1 - Failure: Unexpected error code or socket is normally readable
|
||||
*/
|
||||
int esp_transport_ws_poll_connection_closed(esp_transport_handle_t t, int timeout_ms);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user