 
   getResetInfo = "hello from ESP8266 s07 ";
   getResetInfo += ESP.getResetInfo().substring(0, 30);
-
-  /*
-  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, (char*) getResetInfo.c_str());
-        if (DEBUG_PRINT) {
-          Serial.print("Sending payload: ");
-          Serial.println(getResetInfo);
-        }
-      }
-    } else {
-      client.publish(willTopic, "1", true);
-      client.publish(hellotopic, (char*) getResetInfo.c_str());
-      if (DEBUG_PRINT) {
-        Serial.print("Sending payload: ");
-        Serial.println(getResetInfo);
-      }
-    }
-  }
-  */
 
   startMills = millis();
   sentMills = millis();

    Serial.print("ESP.getFlashChipSize() : ");
    Serial.println(ESP.getFlashChipSize());
  }
  delay(20);

  wifi_connect();

  clientName += "esp8266-";


WiFiClient wifiClient;
PubSubClient client(wifiClient);

long lastReconnectAttempt = 0;

