refactor out console context menus - #510

This commit is contained in:
proddy
2020-09-23 00:19:51 +02:00
parent 6763bb2832
commit b1f10fa5ee
33 changed files with 295 additions and 489 deletions

View File

@@ -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() {