   Serial.print("---------------------------------> IP address: ");
   Serial.println(WiFi.localIP());
 
-  /*
-    //
-    //Serial.println("Starting UDP");
-    udp.begin(localPort);
-    //Serial.print("Local port: ");
-    //Serial.println(udp.localPort());
-    delay(5000);
-    setSyncProvider(getNtpTime);
-
-    if (timeStatus() == timeNotSet) {
-      Serial.println("waiting for sync message");
-    }
-  */
-
-  /*
-    //startMills = 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 s20");
-          Serial.println("reconnecting wifi and mqtt");
-        } else {
-          Serial.println("mqtt publish fail after wifi reconnect");
-        }
-      } else {
-        client.publish(hellotopic, "hello again wifi from ESP8266 s20");
-      }
-    }
-  */
+
+    
+
+//  Serial.println(WiFi.psk());
+
+
+/*
+  byte encryption = WiFi.encryptionType();
+  Serial.print("Encryption Type:");
+  Serial.println(encryption, HEX);
+*/
+
 }
 
 boolean reconnect() {

}

void setup() {
  Serial.begin(74880);
  Serial.println();
  //Serial.println("lwt test");
  //Serial.print("ESP.getFlashChipSize() : ");

  delay(100);
  if (client.connect((char*) clientName.c_str(), willTopic, 0, true, willMessage)) {
    Serial.println("-----> mqtt connected");
    client.publish(willTopic, "1", true);
    if ( ResetInfo == LOW) {
      client.publish(hellotopic, (char*) getResetInfo.c_str());
      ResetInfo = HIGH;
    } else {
      client.publish(hellotopic, "hello again 1 from ESP8266 s20");
    }
  } else {
    Serial.print("-----------------> failed, rc=");
    Serial.println(client.state());
