   Serial.println("IP address: ");
   Serial.println(WiFi.localIP());
 
-/*
-  timemillis = millis();
-
-  if (WiFi.status() == WL_CONNECTED) {
-    if (!client.connected()) {
-      if (client.connect((char*) clientName.c_str(), willTopic, 0, true, willMessage)) {
+  /*
+    timemillis = millis();
+
+    if (WiFi.status() == WL_CONNECTED) {
+      if (!client.connected()) {
+        if (client.connect((char*) clientName.c_str(), willTopic, 0, true, willMessage)) {
+          client.publish(willTopic, "1", true);
+          client.publish(hellotopic, "hello again wifi and mqtt from ESP8266 s02");
+          client.subscribe(subtopic);
+
+          Serial.println("reconnecting wifi and mqtt");
+        } else {
+          Serial.println("mqtt publish fail after wifi reconnect");
+        }
+      } else {
         client.publish(willTopic, "1", true);
-        client.publish(hellotopic, "hello again wifi and mqtt from ESP8266 s02");
+        client.publish(hellotopic, "hello again wifi from ESP8266 s02");
         client.subscribe(subtopic);
-
-        Serial.println("reconnecting wifi and mqtt");
-      } else {
-        Serial.println("mqtt publish fail after wifi reconnect");
       }
-    } else {
-      client.publish(willTopic, "1", true);
-      client.publish(hellotopic, "hello again wifi from ESP8266 s02");
-      client.subscribe(subtopic);
-    }
-  }
-*/
+    }
+  */
 }
 
 boolean reconnect()

    wifi_connect();
  }

  changelight();
  runTimerDoLightOff();

  pirValue = digitalRead(pir);

    relaystatus = 0 ;
  }

  //changelight();

  if (DEBUG_PRINT) {
    Serial.print("");
