TuyaOS
websocket_transporter.h
1#ifndef __WEBSOCKET_TRANSPORTER_H__
2
3#define __WEBSOCKET_TRANSPORTER_H__
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#if defined(ENABLE_WEBSOCKET) && (ENABLE_WEBSOCKET==1)
43/*websocket transporter command definitions*/
44
45struct websocket_config_t {
46 char* scheme;
47 char* path;
48};
49
53typedef struct websocket_config_t tuya_websocket_config_t;
54
62tuya_transporter_t tuya_websocket_transporter_create();
63
73OPERATE_RET tuya_websocket_transporter_destroy(tuya_transporter_t transporter);
74
85OPERATE_RET tuya_websocket_set_path(tuya_transporter_t transporter, const char* path);
86
87
88#endif
89#endif
90
Definition: tuya_transporter.h:387