mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 17:29:50 +03:00
refactor out console context menus - #510
This commit is contained in:
@@ -64,6 +64,7 @@ class EMSESP {
|
||||
static void publish_device_values(uint8_t device_type);
|
||||
static void publish_other_values();
|
||||
static void publish_sensor_values(const bool force = false);
|
||||
static void publish_all();
|
||||
|
||||
#ifdef EMSESP_STANDALONE
|
||||
static void run_test(uuid::console::Shell & shell, const std::string & command); // only for testing
|
||||
@@ -102,8 +103,6 @@ class EMSESP {
|
||||
static void show_devices(uuid::console::Shell & shell);
|
||||
static void show_ems(uuid::console::Shell & shell);
|
||||
|
||||
static void add_context_menus();
|
||||
|
||||
static void init_tx();
|
||||
|
||||
static void incoming_telegram(uint8_t * data, const uint8_t length);
|
||||
@@ -112,6 +111,10 @@ class EMSESP {
|
||||
return sensor_.devices();
|
||||
}
|
||||
|
||||
static bool have_sensors() {
|
||||
return (!(sensor_.devices().empty()));
|
||||
}
|
||||
|
||||
enum Watch : uint8_t { WATCH_OFF, WATCH_ON, WATCH_RAW };
|
||||
static void watch_id(uint16_t id);
|
||||
static uint16_t watch_id() {
|
||||
|
||||
Reference in New Issue
Block a user