-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathPooledStrings.cpp
34 lines (27 loc) · 1.73 KB
/
PooledStrings.cpp
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
#ifndef POOLED_STRINGS_H
#define POOLED_STRINGS_H
#include <pgmspace.h>
const char STR_EEPROM_DUMMY[] PROGMEM = "AAA";
const char STR_EEPROM_DEFAULT_WEBPASSWORD[] PROGMEM = "reprap";
const char STR_MIME_TEXT_HTML[] PROGMEM = "text/html";
const char STR_MIME_TEXT_PLAIN[] PROGMEM = "text/plain";
const char STR_MIME_APPLICATION_JSON[] PROGMEM = "application/json";
const char STR_MIME_APPLICATION_KEY_DATA[] PROGMEM = "application/x-www-form-urlencoded";
const char STR_OK[] PROGMEM = "ok";
const char STR_TRUE[] PROGMEM = "true";
const char STR_CONTENT_LENGTH[] PROGMEM = "Content-Length";
const char STR_CONTENT_ENCODING[] PROGMEM = "Content-Encoding";
const char STR_JSON_ERR_0[] PROGMEM = "{\"err\":0}";
const char STR_JSON_ERR_1[] PROGMEM = "{\"err\":1}";
const char STR_JSON_BUFF_16[] PROGMEM = "{\"buff\":16}";
const char STR_JSON_ERR_404_NOT_FOUND[] PROGMEM = "{\"err\":\"ERROR 404: NOT FOUND\"}";
const char STR_JSON_ERR_UNSUPPORTED_OPERATION[] PROGMEM = "{\"err\":\"Unsupported operation :(\"}";
const char STR_JSON_ERR_500_NO_DATA_RECEIVED[] PROGMEM = "{\"err\":\"ERROR 500: NO DATA RECEIVED\"}";
const char STR_JSON_ERR_500_EMPTY_COMMAND[] PROGMEM = "{\"err\":\"ERROR 500: EMPTY COMMAND\"}";
const char STR_JSON_ERR_500_NOT_UPLOADING_FILES[] PROGMEM = "{\"err\": \"ERROR 500: NOT UPLOADING FILES\"}";
const char STR_JSON_ERR_500_NO_FILENAME_PROVIDED[] PROGMEM = "{\"err\": \"ERROR 500: NO FILENAME PROVIDED\"}";
const char STR_JSON_ERR_500_NO_DIR_NAME_PROVIDED[] PROGMEM = "{\"err\":\"ERROR 500: NO DIR NAME PROVIDED\"}";
const char STR_JSON_ERR_500_IS_UPLOADING_ALREADY[] PROGMEM = "{\"err\":\"ERROR 500: IS UPLOADING ALREADY\"}";
const char STR_JSON_ERR_500_IS_BUSY[] PROGMEM = "{\"err\":\"ERROR 500: IS BUSY\"}";
// End
#endif //POOLED_STRINGS_H