semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
websocket_header.h
1#ifndef _websocket_header_
2#define _websocket_header_
3
4#include "../defines.h"
5
7{
8private:
9 SmeJson json_data;
10 char** pjson;
11
12public:
13// Function: WebsocketHeader
14
15// This endpoint create the websocket header json message on which the api call is to be embedded
16
17// Prototype:
18// void WebsocketHeader(char* json);
19
20// Parameters:
22
23// Returns:
25 WebsocketHeader(char* json)
26 {
27 pjson = &json;
28 json_data.initJson(*pjson);
29 }
30
31// Function: WebsocketHeader.setObj
32
33// This endpoint create the websocket header json message on which the api call is to be embedded
34
35// Prototype:
36// void getRequest(char* requestId, char* requestType, char* body);
37
38// Parameters:
42
43// Returns:
45 char* getRequest(char* requestId, char* requestType, char* body);
46};
47
48#endif
Definition websocket_header.h:7
char * getRequest(char *requestId, char *requestType, char *body)
Definition websocket_header.cpp:18
WebsocketHeader(char *json)
Definition websocket_header.h:25