| semilimes mcu sdk 1.1.2 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
6 class WebsocketHeader
7{
8 private:
9 #define headerSize 100
10 SmeJson json_data;
11 char* json = nullptr;
12
13 public:
14// Function: ~WebsocketHeader
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~WebsocketHeader()
20
21// Parameters:
22
23// Returns:
25 ~WebsocketHeader()
26 {
27 delete[] json;
28 json = nullptr;
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
WebsocketHeader
Definition websocket_header.h:7
WebsocketHeader::~WebsocketHeader
~WebsocketHeader()
Definition websocket_header.h:25
WebsocketHeader::getRequest
char * getRequest(char *requestId, char *requestType, char *body)
Definition websocket_header.cpp:18