 #define LED_PIN 13
 
 #define BETWEEN_RELAY_ACTIVE 1000
+#define REPORT_INTERVAL 5000 // in msec
 
 IPAddress mqtt_server = MQTT_SERVER;
 

volatile bool bRelayReady = false; 
String clientName;
unsigned long lastRelayActionmillis;

void ICACHE_RAM_ATTR callback(char* intopic, byte* inpayload, unsigned int length);


    }
    else
    {
      if (millis() - startMills > REPORT_INTERVAL)
      {
         sendCheck();
         startMills = millis();
      }
      client.loop();
    }
    ArduinoOTA.handle();
