automate migration from 1.9.x to 2.0 (in progress)

This commit is contained in:
proddy
2020-07-22 16:11:13 +02:00
parent 2b43a955d5
commit 4932b00f12
3 changed files with 183 additions and 21 deletions

View File

@@ -45,16 +45,22 @@ class System {
// commands
static void restart();
static void format(uuid::console::Shell & shell);
static void console_commands(Shell & shell, unsigned int context);
static void mqtt_commands(const char * message);
static uint8_t free_mem();
void syslog_init();
static void upload_status(bool in_progress);
static bool upload_status();
void syslog_init();
// heartbeat
void set_heartbeat(bool system_heartbeat);
void send_heartbeat();
void check_upgrade();
private:
static uuid::log::Logger logger_;
@@ -99,6 +105,9 @@ class System {
static int reset_counter_;
uint32_t last_heartbeat_ = 0;
// OTA
static bool upload_status_; // true if we're in the middle of a OTA firmware upload
// settings
uint8_t tx_mode_;
bool system_heartbeat_;