-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_params_gen.h
74 lines (65 loc) · 2.73 KB
/
config_params_gen.h
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
/*
NAME:
Labels (names) of generic parameters
VERSION: 1.35.0
DESCRIPTION:
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.
*/
#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";
// Externals
static const char lblLedStatus[] PROGMEM = "ledStatus";
static const char lblInetStatus[] PROGMEM = "inetStatus";
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 lblErrorWifi[] PROGMEM = "errorWifi";
static const char lblErrorGsheets[] PROGMEM = "errorGsheets";
static const char lblErrorEspnow[] PROGMEM = "errorEspnow";
static const char lblErrorThermo[] PROGMEM = "errorThermo";
#endif