added reboot-command

This commit is contained in:
Marcel Peterkau 2024-05-31 01:19:47 +02:00
parent fc592c4342
commit 9301607468
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include <Arduino.h>
#include "webui.h"
const char PROGMEM helpCmd[] = "sysinfo - System Info\n"
"reboot - System Reboot\n"
"netinfo - WiFi Info\n"
"formatPDS - Format Persistence EEPROM Data\n"
"formatCFG - Format Configuration EEPROM Data\n"

View File

@ -189,6 +189,8 @@ void processCmdDebug(String command)
// Check the received command and execute corresponding actions
if (command == "help")
Debug_printHelp();
else if (command == "reboot")
globals.systemStatus = sysStat_Shutdown;
else if (command == "sysinfo")
Debug_printSystemInfo();
else if (command == "netinfo")