From 5b8c62e2d30851d6d8a7d604683f424235f2497c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Wed, 10 Apr 2024 15:14:41 +0200 Subject: [PATCH] console 'net' -> 'info' --- lib/patrix/console.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/patrix/console.cpp b/lib/patrix/console.cpp index 770f7f2..25d7c58 100644 --- a/lib/patrix/console.cpp +++ b/lib/patrix/console.cpp @@ -46,18 +46,19 @@ 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) { - info("MAC: %17s", WiFi.macAddress().c_str()); - info("IP: %17s", WiFi.localIP().toString().c_str()); - info("Gateway: %17s", WiFi.gatewayIP().toString().c_str()); - info("SSID: %17s", WiFi.SSID().c_str()); - info("BSSID: %17s", WiFi.BSSIDstr().c_str()); - info("RSSI: %17d", WiFi.RSSI()); + } 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()); + info("SSID: %17s", WiFi.SSID().c_str()); + info("BSSID: %17s", WiFi.BSSIDstr().c_str()); + info("RSSI: %17d", WiFi.RSSI()); } else if (strcmp(cmd, "reboot") == 0) { info("Rebooting..."); delay(500);