MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / cmdGetIPAddress

Method cmdGetIPAddress

src/General/MiniTerminal.cpp:296–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void 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
316void MiniTerminal::cmdGetHostname(const char* par)
317{

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected