| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
header.h
1#ifndef _header_
2#define _header_
3
4#include "../defines.h"
5
6 class Header
7{
8 private:
9 char auth[89]; // - the array to contain the authorization script
10 char wsheader[180]; // - the array to contain the websocket header
11
12 public:
13
14// Function: Header.setAuthorization
15
16// set the api-key
17
18// Prototype:
19// void Header::setAuthorization(char* apikey);
20
21// Parameters:
23
24// Returns:
26
27 void setAuthorization(const char* apikey);
28
29// Function: Header.getHttpsUrl
30
31// return the https server url
32
33// Prototype:
34// char* Header::getHttpsUrl();
35
36// Parameters:
37
38// Returns:
40
41 char* getHttpsUrl();
42
43// Function: Header.getwsEP
44
45// return the web socket endpoint
46
47// Prototype:
48// char* Header::getwsEP();
49
50// Parameters:
51
52// Returns:
54
55 char* getWsEP();
56
57// Function: Header.getwsClientEP
58
59// return the web socket client endpoint
60
61// Prototype:
62// char* Header::getwsClientEP();
63
64// Parameters:
65
66// Returns:
68
69 char* getWsClientEP();
70
71// Function: Header.getwsHost
72
73// return the web socket host
74
75// Prototype:
76// char* Header::getwsHost();
77
78// Parameters:
79
80// Returns:
82
83 char* getWsHost();
84
85// Function: Header.getwsPort
86
87// return the web socket port
88
89// Prototype:
90// int Header::getwsPort();
91
92// Parameters:
93
94// Returns:
96
97 int getWsPort();
98
99// Function: Header.getWsHeader
100
101// return the formatted websocket header
102
103// Prototype:
104// char* Header::getWsHeader();
105
106// Parameters:
107
108// Returns:
110
111 char* getWsHeader();
112
113// Function: Header.getContentType
114
115// return the contentType
116
117// Prototype:
118// char* Header::getContentType();
119
120// Parameters:
121
122// Returns:
124
125 char* getContentType();
126
127// Function: Header.getAuthorization
128
129// return the authorization
130
131// Prototype:
132// char* Header::getAuthorization();
133
134// Parameters:
135
136// Returns:
138
139 char* getAuthorization();
140
141// Function: Header.getAuthorization
142
143// return the accept
144
145// Prototype:
146// char* Header::getAccept();
147
148// Parameters:
149
150// Returns:
152
153 char* getAccept();
154};
155
156#endif
Header
Definition header.h:7
Header::getWsHost
char * getWsHost()
Definition header.cpp:85
Header::getAuthorization
char * getAuthorization()
Definition header.cpp:158
Header::getContentType
char * getContentType()
Definition header.cpp:141
Header::setAuthorization
void setAuthorization(const char *apikey)
Definition header.cpp:16
Header::getWsClientEP
char * getWsClientEP()
Definition header.cpp:68
Header::getWsHeader
char * getWsHeader()
Definition header.cpp:119
Header::getWsPort
int getWsPort()
Definition header.cpp:102
Header::getWsEP
char * getWsEP()
Definition header.cpp:51
Header::getAccept
char * getAccept()
Definition header.cpp:175
Header::getHttpsUrl
char * getHttpsUrl()
Definition header.cpp:34