console 'net' -> 'info'

This commit is contained in:
Patrick Haßel 2024-04-10 15:14:41 +02:00
parent de7617a126
commit 5b8c62e2d3

View File

@ -46,12 +46,13 @@ void consoleLoop() {
void consoleHandle(const char *cmd) {
if (strcmp(cmd, "help") == 0) {
info("help : print this help");
info("net : print network info");
info("info : print system info");
info("reboot : reboot system");
info("wifi : reconnect wifi");
info("mqtt : reconnect mqtt");
info("debug : toggle debug log");
} else if (strcmp(cmd, "net") == 0) {
} else if (strcmp(cmd, "info") == 0) {
info("HOSTNAME: %17s", HOSTNAME);
info("MAC: %17s", WiFi.macAddress().c_str());
info("IP: %17s", WiFi.localIP().toString().c_str());
info("Gateway: %17s", WiFi.gatewayIP().toString().c_str());