   strcat (buffer,"]}");
 }
 
+#endif
+
 void dumpToSerial() {
   // Print data also on the serial
   Serial.print("#");

  long feed;
  IPAddress host;
  long port;
} 
settings;

// working vars
EthernetServer server(SERVER_PORT);

void reset() {
  DBG Serial.println("Writing defaults.");  

float VFinal = 0.0;
float IFinal = 0.0;

#ifndef NOETH

  // Server configuration parameters, energino will listen for
  // incoming requests on this port
  const long SERVER_PORT = 8180;

  // This configuration is used when DHCP fails
  IPAddress IP(172,25,18,219);
  IPAddress MASK(255,255,255,0);
  IPAddress GW(172,25,18,254);
  
  // Not found page
  const char CONTENT_404[] = "HTTP/1.1 404 Not Found\n\n";
  
  // Not implemented page
  const char CONTENT_501[] = "HTTP/1.1 501 Not Implemented\n\n";
  
  // JSON response header and footer
  const char JSON_RESPONSE_BEGIN[] = "HTTP/1.1 200 OK\nContent-Type: application/json\n\n[";
  const char JSON_RESPONSE_END[] = "]\n";

  // working vars
  EthernetServer server(SERVER_PORT);

  // Minimum period for Ethernet updates
  const long MIN_ETHERNET_PERIOD = 2000;

#endif

// magic string
const char MAGIC[] = "Energino";
const int REVISION = 1;

// Permanent configuration
struct settings_t {
