 
 void strombewusstPush()
 {
-  #ifdef USE_ETHERNET_SHIELD
+  // Make sure we have either the Ethernet or WiFi shield enabled
+  if (useNetwork == false)
+  {
+    return;
+  }
   
-  #endif
-  #ifdef USE_WIFI_SHIELD
-  
-  #endif
+  // Set the last byte the the current frame's value
+  udpBuffer[33] = storage[storagePointer];
+  udp.beginPacket(STROMBEWUSST_SERVER, STROMBEWUSST_PORT);
+  udp.write(udpBuffer);
+  udp.endPacket();
 }
 
 void pointerChanged()
 {
+  storage[storagePointer] = 0;
   Serial.println("Last 5 seconds: "+String(storageSum(1)));
   Serial.println("Last 30 seconds: "+String(storageSum(6)));
   Serial.println("Last minute: "+String(storageSum(12)));
   Serial.println("Pointer changed to "+String(storagePointer));
-  storage[storagePointer] = 0;
 }
 
 

  pinMode(TRIGGER_PIN, INPUT);
  
  #ifdef USE_WIFI_SHIELD
    wifiConnect();
  #endif
  #ifdef USE_ETHERNET_SHIELD
    ethernetConnect();
  #endif
  #ifdef USE_STROMBEWUSST_SERVER


void strombewusstInit()
{
  // Make sure we have either the Ethernet or WiFi shield enabled
  if (useNetwork == false)
  {
    return;
  }

  udpBuffer[32] = TIMEFRAME;
  udp.begin(STROMBEWUSST_PORT);
}

void loop()
