move system commands to main

This commit is contained in:
MichaelDvP
2021-04-21 07:44:28 +02:00
parent cd43a9feb8
commit 6b327e3ab3
4 changed files with 157 additions and 176 deletions

View File

@@ -48,7 +48,6 @@ class System {
void loop();
// commands
static void console_commands(Shell & shell, unsigned int context);
static bool command_pin(const char * value, const int8_t id);
static bool command_send(const char * value, const int8_t id);
static bool command_publish(const char * value, const int8_t id);
@@ -103,6 +102,9 @@ class System {
return true;
#endif
}
void show_system(uuid::console::Shell & shell);
void wifi_reconnect();
void show_users(uuid::console::Shell & shell);
private:
static uuid::log::Logger logger_;
@@ -135,9 +137,6 @@ class System {
void system_check();
void measure_analog();
void show_system(uuid::console::Shell & shell);
void show_users(uuid::console::Shell & shell);
void wifi_reconnect();
int8_t wifi_quality();
bool system_healthy_ = false;