2018-09-25 04:34:04 -04:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions defined in
|
|
|
|
* file 'LICENSE', which is part of this source code package.
|
|
|
|
* Tuan PM <tuanpm at live dot com>
|
|
|
|
*/
|
|
|
|
|
2018-09-26 05:56:47 -04:00
|
|
|
#ifndef _ESP_TRANSPORT_WS_H_
|
|
|
|
#define _ESP_TRANSPORT_WS_H_
|
2018-09-25 04:34:04 -04:00
|
|
|
|
|
|
|
#include "esp_transport.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-09-26 05:56:47 -04:00
|
|
|
* @brief Create web socket transport
|
2018-09-25 04:34:04 -04:00
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* - transport
|
|
|
|
* - NULL
|
|
|
|
*/
|
2018-09-26 05:56:47 -04:00
|
|
|
esp_transport_handle_t esp_transport_ws_init(esp_transport_handle_t parent_handle);
|
2018-09-25 04:34:04 -04:00
|
|
|
|
2018-09-26 05:56:47 -04:00
|
|
|
void esp_transport_ws_set_path(esp_transport_handle_t t, const char *path);
|
2018-09-25 04:34:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-26 05:56:47 -04:00
|
|
|
#endif /* _ESP_TRANSPORT_WS_H_ */
|