esp_websocket_client: Add websocket client component

Closes https://github.com/espressif/esp-idf/issues/2829
This commit is contained in:
Tuan
2019-06-20 15:37:40 +08:00
committed by Angus Gratton
parent 092179207e
commit 2a2d932cfe
21 changed files with 1147 additions and 18 deletions
@@ -23,8 +23,25 @@ extern "C" {
*/
esp_transport_handle_t esp_transport_ws_init(esp_transport_handle_t parent_handle);
/**
* @brief Set HTTP path to update protocol to websocket
*
* @param t websocket transport handle
* @param path The HTTP Path
*/
void esp_transport_ws_set_path(esp_transport_handle_t t, const char *path);
/**
* @brief Set websocket sub protocol header
*
* @param t websocket transport handle
* @param sub_protocol Sub protocol string
*
* @return
* - ESP_OK on success
* - One of the error codes
*/
esp_err_t esp_transport_ws_set_subprotocol(esp_transport_handle_t t, const char *sub_protocol);
#ifdef __cplusplus