-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_params_gen.h
More file actions
79 lines (72 loc) · 3.36 KB
/
config_params_gen.h
File metadata and controls
79 lines (72 loc) · 3.36 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/** Labels (names) of generic parameters.
*
* @brief Generic parameters are utilized almost in every project, especially
* which communicates over Wifi and with IoT platforms. The labels are stored in
* program flash memory in order to save SRAM of a microcontroller.
* @version 1.42.0
*/
#ifndef CONFIG_PARAMS_GEN_H
#define CONFIG_PARAMS_GEN_H
#include <Arduino.h>
#if defined(__AVR__)
#include <avr/pgmspace.h>
#include <inttypes.h>
#elif defined(ESP8266)
#include <pgmspace.h>
#elif defined(ESP32)
#include <pgmspace.h>
#endif
// General
static const char lblStatus[] PROGMEM = "status";
static const char lblTimestamp[] PROGMEM = "timestamp";
static const char lblOutage[] PROGMEM = "outage";
static const char lblRevert[] PROGMEM = "revert";
static const char lblActive[] PROGMEM = "active";
static const char lblOutageTime[] PROGMEM = "outageTime";
static const char lblRevertTime[] PROGMEM = "revertTime";
static const char lblSignals[] PROGMEM = "signals";
static const char lblRandomHourMinute[] PROGMEM = "randomHourMinute";
// Firmware
static const char lblProject[] PROGMEM = "project";
static const char lblVersion[] PROGMEM = "version";
static const char lblBootTime[] PROGMEM = "bootTime";
static const char lblBoots[] PROGMEM = "boots";
static const char lblMcuBoot[] PROGMEM = "mcuBoot";
static const char lblMcuRestarts[] PROGMEM = "mcuRestarts";
static const char lblMcuReboot[] PROGMEM = "mcuReboot";
static const char lblMcuUpTime[] PROGMEM = "mcuUpTime";
static const char lblFsFormatTime[] PROGMEM = "fsFormatTime";
// Wifi
static const char lblRssi[] PROGMEM = "rssi";
static const char lblHostname[] PROGMEM = "hostname";
static const char lblPortOTA[] PROGMEM = "portOTA";
static const char lblAddressIp[] PROGMEM = "addressIP";
static const char lblAddressMac[] PROGMEM = "addressMAC";
static const char lblWifiOutageTime[] PROGMEM = "wifiOutageTime";
static const char lblWifiRevertTime[] PROGMEM = "wifiRevertTime";
static const char lblWifiStatus[] PROGMEM = "wifiStatus";
static const char lblWifiRestart[] PROGMEM = "wifiRestart";
// Externals
static const char lblLedStatus[] PROGMEM = "ledStatus";
static const char lblInetStatus[] PROGMEM = "inetStatus";
static const char lblWhatsappStatus[] PROGMEM = "whatsappStatus";
static const char lblInetOutageTime[] PROGMEM = "internetOutageTime";
static const char lblInetRevertTime[] PROGMEM = "internetRevertTime";
static const char lblAddressIpExt[] PROGMEM = "addressIpExt";
static const char lblAddressIpExtTime[] PROGMEM = "addressIpExtTime";
static const char lblDdnsPayload[] PROGMEM = "ddnsPayload";
static const char lblDdnsPayloadTime[] PROGMEM = "ddnsPayloadTime";
// Errors
static const char lblErrorRestart[] PROGMEM = "errorRestart";
static const char lblErrorCount[] PROGMEM = "errorCount";
static const char lblErrorLimit[] PROGMEM = "errorLimit";
static const char lblErrorTime[] PROGMEM = "errorTime";
static const char lblErrorTimeStart[] PROGMEM = "errorTimeStart";
static const char lblErrorTimeStop[] PROGMEM = "errorTimeStop";
static const char lblErrorWifi[] PROGMEM = "errorWifi";
static const char lblErrorGsheets[] PROGMEM = "errorGsheets";
static const char lblErrorInet[] PROGMEM = "errorInet";
static const char lblErrorDatabase[] PROGMEM = "errorDatabase";
static const char lblErrorEventOutage[] PROGMEM = "errorEventOutage";
static const char lblErrorEventRevert[] PROGMEM = "errorEventRevert";
#endif