mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 01:29:07 +03:00
more to psram, names for sensors, schedule, custom as char[20]
This commit is contained in:
@@ -56,20 +56,17 @@ class ScheduleItem {
|
||||
boolean active;
|
||||
uint8_t flags;
|
||||
uint16_t elapsed_min; // total mins from 00:00
|
||||
std::string time; // HH:MM
|
||||
std::string cmd;
|
||||
std::string value;
|
||||
std::string name;
|
||||
stringPSRAM time; // HH:MM
|
||||
stringPSRAM cmd;
|
||||
stringPSRAM value;
|
||||
char name[20];
|
||||
uint8_t retry_cnt;
|
||||
};
|
||||
|
||||
class WebScheduler {
|
||||
public:
|
||||
#ifndef EMSESP_STANDALONE
|
||||
std::list<ScheduleItem, AllocatorPSRAM<ScheduleItem>> scheduleItems;
|
||||
#else
|
||||
std::list<ScheduleItem> scheduleItems;
|
||||
#endif
|
||||
|
||||
static void read(WebScheduler & webScheduler, JsonObject root);
|
||||
static StateUpdateResult update(JsonObject root, WebScheduler & webScheduler);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user