     Serial.println("Transmit NTP Sent");
   }
 }
-//
+
+
+long DateToMjd (uint16_t y, uint8_t m, uint8_t d)
+{
+  return
+    367 * y
+    - 7 * (y + (m + 9) / 12) / 4
+    - 3 * ((y + (m - 9) / 7) / 100 + 1) / 4
+    + 275 * m / 9
+    + d
+    + 1721028
+    - 2400000;
+}
+
+static unsigned long  numberOfSecondsSinceEpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s)
+{
+  long Days;
+
+  Days = DateToMjd(y, m, d) - DateToMjd(1970, 1, 1);
+  return (uint16_t)Days * 86400 + h * 3600L + mm * 60L + s - (timeZone * SECS_PER_HOUR);
+}
+
+
+//

  //radio.setCRCLength(RF24_CRC_8);
  radio.setPayloadSize(11);
  radio.openReadingPipe(1, pipes[0]);
  radio.openWritingPipe(pipes[1]);
  radio.startListening();

  //OTA


  //
  lastReconnectAttempt = 0;
  millisnow = 0;
  
  getResetInfo = "hello from ESP8266 s02 ";
  getResetInfo += ESP.getResetInfo().substring(0, 30);

