 
   Serial.print("Next sleep : ");
   Serial.println(nextSleep);
-  ESP.deepSleep(nextSleep, WAKE_RF_DISABLED);
+  //  ESP.deepSleep(nextSleep, WAKE_RF_DISABLED);
+  ESP.deepSleep(nextSleep, WAKE_RFCAL);
 
   yield();
 

uint32_t doCalculation() {
  uint32_t nextSleep = TEN_MIN_TIME;

  int timeInSecs = ss;
  timeInSecs = timeInSecs + (mm * 60);
  timeInSecs = timeInSecs + (hh * 60 * 60);
  
  if(){
  }

  
  return nextSleep;
}


}

void doWork() {
  if (connectToInternet()) {
    String subject =  "Device ";
    subject =  subject + ESP.getChipId();
    subject =  subject + " is DO WORK!!!. Count: ";
    subject =  subject + rtcStore[2];
    String message =  "Battery Power: ";
    message = message + ESP.getVcc();
    sendEmail(subject, message);
    disconnectInternet();
  }

  digitalWrite(14, HIGH);
  delay(1000);
  yield();
