diff --git a/extras/Demo/Source/Demos/SystemInfoDemo.cpp b/extras/Demo/Source/Demos/SystemInfoDemo.cpp index d02b610663..d6af7a3430 100644 --- a/extras/Demo/Source/Demos/SystemInfoDemo.cpp +++ b/extras/Demo/Source/Demos/SystemInfoDemo.cpp @@ -49,6 +49,19 @@ static String getFileSystemRoots() return rootList.joinIntoString (", "); } +static String getIPAddressList() +{ + Array addresses; + IPAddress::findAllAddresses (addresses); + + String addressList; + + for (int i = 0; i < addresses.size(); ++i) + addressList << " " << addresses[i].toString() << newLine; + + return addressList; +} + static const char* getDisplayOrientation() { switch (Desktop::getInstance().getCurrentOrientation()) @@ -139,6 +152,7 @@ static String getAllSystemInfo() .getBytesFreeOnVolume()) << newLine << newLine << getDisplayInfo() << newLine + << "Network IP addresses: " << newLine << getIPAddressList() << newLine << "Network card MAC addresses: " << newLine << getMacAddressList() << newLine; DBG (systemInfo);