mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 09:39:11 +03:00
selective restart of services after settings change
This commit is contained in:
35
src/system.h
35
src/system.h
@@ -63,9 +63,11 @@ class System {
|
||||
static void upload_status(bool in_progress);
|
||||
static bool upload_status();
|
||||
static void show_mem(const char * note);
|
||||
static void set_led();
|
||||
static void init();
|
||||
static void syslog_init();
|
||||
|
||||
static void init();
|
||||
static void led_init();
|
||||
static void syslog_init();
|
||||
static void other_init();
|
||||
|
||||
bool check_upgrade();
|
||||
void send_heartbeat();
|
||||
@@ -104,23 +106,20 @@ class System {
|
||||
static void wifi_reconnect();
|
||||
static int8_t wifi_quality();
|
||||
|
||||
bool system_healthy_ = false;
|
||||
uint32_t led_flash_speed_ = LED_WARNING_BLINK_FAST; // default boot flashes quickly
|
||||
static uint32_t heap_start_;
|
||||
static int reset_counter_;
|
||||
uint32_t last_heartbeat_ = 0;
|
||||
static bool upload_status_; // true if we're in the middle of a OTA firmware upload
|
||||
static uint16_t analog_;
|
||||
static std::string hostname_;
|
||||
bool system_healthy_ = false;
|
||||
uint32_t led_flash_speed_ = LED_WARNING_BLINK_FAST; // default boot flashes quickly
|
||||
uint32_t last_heartbeat_ = 0;
|
||||
|
||||
static bool upload_status_; // true if we're in the middle of a OTA firmware upload
|
||||
static uint32_t heap_start_;
|
||||
static uint16_t analog_;
|
||||
|
||||
// settings
|
||||
static bool hide_led_;
|
||||
static bool syslog_enabled_;
|
||||
static int8_t syslog_level_;
|
||||
static uint32_t syslog_mark_interval_;
|
||||
static String syslog_host_;
|
||||
static uint8_t led_gpio_;
|
||||
static bool analog_enabled_;
|
||||
static std::string hostname_;
|
||||
static bool hide_led_;
|
||||
static uint8_t led_gpio_;
|
||||
static bool syslog_enabled_;
|
||||
static bool analog_enabled_;
|
||||
};
|
||||
|
||||
} // namespace emsesp
|
||||
|
||||
Reference in New Issue
Block a user