 
 /*UDP Scheduler*/
 long old_time, curret_time = 0;
-long delay_time = 10; //interval between UDP sends *NEEDED! Will crash otherwise
+long delay_time = 30; //interval between UDP sends *NEEDED! Will crash otherwise
 uint8_t old_val = 0;
 //===========================================================================//
 

  Serial.begin(115200); 
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  //=========================================================================//

  /*setup GPIOs*/
  for(uint8_t i = 0; i<gpio_len; i++)
  {
    pinMode(gpios[i], OUTPUT);
  }
  //=========================================================================//



int status = 0;     // the Wifi radio's status

IPAddress outIp(255, 255, 255, 255); //broadcast UDP
//===========================================================================//

/*UDP*/
WiFiUDP Udp; //make ESP8266 Udp instance
const unsigned int inPort = 8888;
const unsigned int outPort = 9999;
