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);