| 294 | } |
| 295 | |
| 296 | void MiniTerminal::cmdGetIPAddress(const char* par) |
| 297 | { |
| 298 | String result; |
| 299 | |
| 300 | UTIL_NOT_USED(par); |
| 301 | |
| 302 | if (WIFI_MODE_AP == WiFi.getMode()) |
| 303 | { |
| 304 | result = WiFi.softAPIP().toString(); |
| 305 | } |
| 306 | else |
| 307 | { |
| 308 | result = WiFi.localIP().toString(); |
| 309 | } |
| 310 | |
| 311 | result += "\n"; |
| 312 | |
| 313 | writeSuccessful(result.c_str()); |
| 314 | } |
| 315 | |
| 316 | void MiniTerminal::cmdGetHostname(const char* par) |
| 317 | { |