 
   // send data to remote host
   sendData();
+
+  // dump to serial
+  dumpToSerial();
 
   // Control loop
   delta = abs(millis() - started);

}

void setup() {
  // Default on
  pinMode(RELAY_PIN,OUTPUT);
  digitalWrite(RELAY_PIN, LOW);
  pinMode(13,OUTPUT);
  digitalWrite(13, LOW);
  // configuring serial
  Serial.begin(115200);   
  // Loading setting 
  eeprom_read_block((void*)&settings, (void*)0, sizeof(settings));
  if (strcmp(settings.magic, MAGIC) != 0) {

  }
}

void sendContent(EthernetClient &request, long value) {
  request.println(JSON_RESPONSE_BEGIN);
  request.print(value);
  request.print(JSON_RESPONSE_END);
}

void sendContent(EthernetClient &request, char *value) {
  request.println(JSON_RESPONSE_BEGIN);
  request.print(value);
  request.print(JSON_RESPONSE_END);
}

char * getDatastream() {
  strcpy (buffer,"{\"version\":\"1.0.0\",");
  strcat (buffer,"\"datastreams\":[");
  strcat (buffer,"{\"id\":\"current\",\"current_value\":");
