console 'net' -> 'info'
This commit is contained in:
parent
de7617a126
commit
5b8c62e2d3
@ -46,18 +46,19 @@ void consoleLoop() {
|
|||||||
void consoleHandle(const char *cmd) {
|
void consoleHandle(const char *cmd) {
|
||||||
if (strcmp(cmd, "help") == 0) {
|
if (strcmp(cmd, "help") == 0) {
|
||||||
info("help : print this help");
|
info("help : print this help");
|
||||||
info("net : print network info");
|
info("info : print system info");
|
||||||
info("reboot : reboot system");
|
info("reboot : reboot system");
|
||||||
info("wifi : reconnect wifi");
|
info("wifi : reconnect wifi");
|
||||||
info("mqtt : reconnect mqtt");
|
info("mqtt : reconnect mqtt");
|
||||||
info("debug : toggle debug log");
|
info("debug : toggle debug log");
|
||||||
} else if (strcmp(cmd, "net") == 0) {
|
} else if (strcmp(cmd, "info") == 0) {
|
||||||
info("MAC: %17s", WiFi.macAddress().c_str());
|
info("HOSTNAME: %17s", HOSTNAME);
|
||||||
info("IP: %17s", WiFi.localIP().toString().c_str());
|
info("MAC: %17s", WiFi.macAddress().c_str());
|
||||||
info("Gateway: %17s", WiFi.gatewayIP().toString().c_str());
|
info("IP: %17s", WiFi.localIP().toString().c_str());
|
||||||
info("SSID: %17s", WiFi.SSID().c_str());
|
info("Gateway: %17s", WiFi.gatewayIP().toString().c_str());
|
||||||
info("BSSID: %17s", WiFi.BSSIDstr().c_str());
|
info("SSID: %17s", WiFi.SSID().c_str());
|
||||||
info("RSSI: %17d", WiFi.RSSI());
|
info("BSSID: %17s", WiFi.BSSIDstr().c_str());
|
||||||
|
info("RSSI: %17d", WiFi.RSSI());
|
||||||
} else if (strcmp(cmd, "reboot") == 0) {
|
} else if (strcmp(cmd, "reboot") == 0) {
|
||||||
info("Rebooting...");
|
info("Rebooting...");
|
||||||
delay(500);
|
delay(500);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user