FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esp32_https_server/https_server.h at master · gmos/esp32_https_server · GitHub
gmos
esp32_https_server
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
esp32_https_server
/
https_server.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (37 loc) · 1.32 KB
Breadcrumbs
esp32_https_server
/
https_server.h
Copy path
File metadata and controls
48 lines (37 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section
#ifndef
_https_server_H_
#define
_https_server_H_
// Arduino libraries
#include
"Arduino.h"
// For multitasking
#if
CONFIG_FREERTOS_UNICORE
#define
ARDUINO_RUNNING_CORE
0
#else
#define
ARDUINO_RUNNING_CORE
1
#endif
// We will use wifi
#include
<WiFi.h>
// Copy data/wifi/wifi.example.h to /data/wifi/wifi.h and change the ssid and psk
#include
"data/wifi/wifi.h"
// Run tools/cert/create_cert.sh to create a CA and issue a certificate that will
// be stored in the data/cert/ header files
#include
"data/cert/cert.h"
#include
"data/cert/private_key.h"
// The favicon (binary)
#include
"data/favicon.h"
// Inlcudes for setting up the server
#include
"https/HTTPSServer.hpp"
// Includes to define request handler callbacks
#include
"https/HTTPRequest.hpp"
#include
"https/HTTPResponse.hpp"
// The server loop will be configured as a separate task, so the server will run
// independently from all other code.
// As an alternative, it's possible to call the HTTPServer::loop() function in the
// main loop after setting up the server in setup().
// The loop function triggers all connection handling etc. in the background
void
serverTask
(
void
*
params
);
#endif
/* _https_server_H_ */
Back
|
FazBrowse Home
|
New Git URL