forked from OpenMYR/IoT_Motors
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate_web_data.h.txt
55 lines (44 loc) · 3.2 KB
/
template_web_data.h.txt
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
49
50
51
52
53
54
55
#ifndef WEB_DATA_H
#define WEB_DATA_H
#define BODY_BG_LEN ##images/body_bg.jpg-length##
#define MYR_LOGO_LEN ##images/myr_logo.png-length##
#define FAVICON_LEN ##favicon.ico-length##
#define FAV_OK_LEN (84 + ##favicon.ico-length-digits##)
#define PNG_OK_LEN (81 + ##images/myr_logo.png-length-digits##)
#define JPG_OK_LEN (82 + ##images/body_bg.jpg-length-digits##)
#define DEFAULT_CSS_LEN ##css/default.css-length##
#define INDEX_PAGE_LEN ##index.html-length##
#define CONFIG_PAGE_LEN ##config.html-length##
#define CONTROL_PAGE_LEN ##control.html-length##
#define CSS_OK_LEN (95 + ##css/default.css-length-digits##)
#define INDEX_OK_LEN (96 + ##index.html-length-digits##)
#define CONFIG_OK_LEN (96 + ##config.html-length-digits##)
#define CONTROL_OK_LEN (96 + ##control.html-length-digits##)
#define REDIR_LEN (23 + 19 + 21)
static char *default_css = "HTTP/1.1 200 OK\r\nContent-Type: text/css; charset=UTF-8\r\nContent-Length: ##css/default.css-length##\r\nConnection: close\r\n\r\n##css/default.css-data##";
static char *index_page = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: ##index.html-length##\r\nConnection: close\r\n\r\n##index.html-data##";
static char *config_page = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: ##config.html-length##\r\nConnection: close\r\n\r\n##config.html-data##";
static char *control_page = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: ##control.html-length##\r\nConnection: close\r\n\r\n##control.html-data##";
static char *post_redirect = "HTTP/1.1 202 Accepted\r\nContent-Length: 0\r\nConnection: close\r\n\r\n";
static unsigned char favicon_ico[] = {
'H', 'T', 'T', 'P', '/', '1', '.', '1', ' ', '2', '0', '0', ' ', 'O', 'K', '\r', '\n',
'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'T', 'y', 'p', 'e', ':', ' ', 'i', 'm', 'a', 'g', 'e', '/', 'x', '-', 'i', 'c', 'o', 'n',
'\r', '\n', 'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'L', 'e', 'n', 'g', 't', 'h', ':', ' ', ##favicon.ico-length_as_array##
'\r', '\n', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ' ', 'c', 'l', 'o', 's', 'e', '\r', '\n', '\r', '\n',
##favicon.ico-data##
};
unsigned char myr_logo_png[] = {
'H', 'T', 'T', 'P', '/', '1', '.', '1', ' ', '2', '0', '0', ' ', 'O', 'K', '\r', '\n',
'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'T', 'y', 'p', 'e', ':', ' ', 'i', 'm', 'a', 'g', 'e', '/', 'p', 'n', 'g',
'\r', '\n', 'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'L', 'e', 'n', 'g', 't', 'h', ':', ' ', ##images/myr_logo.png-length_as_array##
'\r', '\n', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ' ', 'c', 'l', 'o', 's', 'e', '\r', '\n', '\r', '\n',
##images/myr_logo.png-data##
};
unsigned char body_bg_jpg[] = {
'H', 'T', 'T', 'P', '/', '1', '.', '1', ' ', '2', '0', '0', ' ', 'O', 'K', '\r', '\n',
'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'T', 'y', 'p', 'e', ':', ' ', 'i', 'm', 'a', 'g', 'e', '/', 'j', 'p', 'e', 'g',
'\r', '\n', 'C', 'o', 'n', 't', 'e', 'n', 't', '-', 'L', 'e', 'n', 'g', 't', 'h', ':', ' ', ##images/body_bg.jpg-length_as_array##
'\r', '\n', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ' ', 'c', 'l', 'o', 's', 'e', '\r', '\n', '\r', '\n',
##images/body_bg.jpg-data##
};
#endif