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

Function getIPAddress

src/Web/Pages.cpp:478–492  ·  view source on GitHub ↗

* Get IP address, depended on WiFi mode. * * @return IPv4 */

Source from the content-addressed store, hash-verified

476 * @return IPv4
477 */
478static String getIPAddress()
479{
480 String result;
481
482 if (WIFI_MODE_AP == WiFi.getMode())
483 {
484 result = WiFi.softAPIP().toString();
485 }
486 else
487 {
488 result = WiFi.localIP().toString();
489 }
490
491 return result;
492}
493
494/**
495 * Get supported image file extensions for BitmapWidget.

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected