 
   setupEthernet();
   connectToServer();
-  delay(DELAY);
 }
 
 void loop() {

  }

  readData();
  pseudopod.sendConfiguredPins();
}

void readData() {
  delay(DELAY);

  while (conn.available()) {
    Serial.println(F("Received message"));
    Serial.flush();

    if(pseudopod.readMessage() == TentacleMessageTopic_action) {
      delay(DELAY);
      pseudopod.sendPins();
    }
  }

  delay(DELAY);
}

void connectToServer() {

    Serial.println(F("Can't connect to the server."));
    Serial.flush();
    conn.stop();
    connectionAttempts++;
  }

