Add User-Agent and additional headers to esp_websocket_client

Merges https://github.com/espressif/esp-idf/pull/4345


* Original commit: espressif/esp-idf@9200250f51
This commit is contained in:
David N. Junod
2019-11-15 04:15:55 -07:00
committed by gabsuren
parent 1fcc001ae8
commit a48b0fafe8
2 changed files with 22 additions and 0 deletions

View File

@ -92,6 +92,8 @@ typedef struct {
const char *cert_pem; /*!< SSL Certification, PEM format as string, if the client requires to verify server */
esp_websocket_transport_t transport; /*!< Websocket transport type, see `esp_websocket_transport_t */
char *subprotocol; /*!< Websocket subprotocol */
char *user_agent; /*!< Websocket user-agent */
char *headers; /*!< Websocket additional headers */
} esp_websocket_client_config_t;
/**