 #ifdef USE_WIFI_SHIELD
   #define USE_NETWORK
   WiFiClient client;
+  WiFiClient connection;
   WiFiServer server = WiFiServer(SERVER_PORT);
   WiFiUDP udp;
   int connectionStatus = WL_IDLE_STATUS;
 #endif
 
 #ifdef USE_NETWORK
-  char requestBuffer[96];
+  char requestBuffer[128];
+  boolean lastConnected = false;
 #endif
 
 #ifdef USE_STROMBEWUSST_SERVER

void networkConnect();
void wifiConnect();
void ethernetConnect();
void serverCheck();
String serverHeader(String);
bool networkRequestIP(IPAddress, String);


#ifdef USE_ETHERNET_SHIELD
  #define USE_NETWORK
  EthernetClient client;
  EthernetClient connection;
  EthernetServer server = EthernetServer(SERVER_PORT);
  EthernetUDP udp;
  byte ethernetMac[] = ETHERNET_MAC;
