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

    if (bRelayReady)
    {
      change_light();
      sendCheck();
      lastRelayActionmillis = millis();
      bUpdated = false;
    }

  pinMode(RELAY_PIN, OUTPUT);
  pinMode(BUTTON_PIN, INPUT_PULLUP);

  startMills = lastRelayActionmillis = millis();

  attachInterrupt(BUTTON_PIN, run_lightcmd_isr, RISING);

