
#include "softwareInfo.h"

#include "timeutils.h"
#include "net.h"

String softwareInfo() {
  String res = " ";
  res += localTimeString();
  res += " - RBPXPLRTERM: " SW_VERSION "\n";
  res += F(" Build: Config:  " _CONFIGFILETIME "\n");
  res += F(" Build: Version: " _VERSIONFILETIME "\n");  
  res += F(" IDE: " TOSTRING(ARDUINO) " - ");
#ifdef LOGGING_ENABLED
  res += F(" logging enabled\n");
#else
  res += F(" logging disabled\n");
#endif
  res += String (" IP-Address:  ") + netLocalAddress() + "\n";
  res += String (" MAC-Address: ") + netLocalMACAddress() + "\n";
  return res;
}

void serialPrintSoftwareInfo() {
  SERIAL_PRINT(softwareInfo());
}
