 //#define USE_NEOPIXEL
 #define NEOPIXEL_PIN 6
 
-//#define USE_XS1_SERVER
+#define USE_XS1_SERVER
 #define XS1_IP (10, 11, 10, 18)
 #define XS1_URL "/control?callback=cname&cmd=set_state_sensor&number=9&value="
 

  int pointer = millis() / 1000 / TIMEFRAME % STORAGE_HOURS;
  if (pointer != storagePointer)
  {
    #ifdef USE_STROMBEWUSST_SERVER
      strombewusstPush();
    #endif
    #ifdef USE_XS1_SERVER
      xs1Push();
    #endif
    storagePointer = pointer;
    pointerChanged();
  }
}

#ifdef USE_XS1_SERVER
void xs1Push()
{

}  
#endif
  
void strombewusstPush()
{
  // Make sure we have either the Ethernet or WiFi shield enabled
  #ifdef USE_STROMBEWUSST_SERVER  
    // 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();
  #endif
}

void pointerChanged()

void networkConnect();
void wifiConnect();
void ethernetConnect();
void serverCheck();
String serverHeader(String);
String requestHeader(String url);
bool networkRequest(IPAddress server, String url);

void triggerCheck();
void gotTriggered();

void push();
void xs1Push();
void strombewusstPush();

