time_sntp.h 578 B

123456789101112131415161718192021222324
  1. #include <string>
  2. #include <time.h>
  3. #include <sys/time.h>
  4. #include "freertos/FreeRTOS.h"
  5. #include "freertos/task.h"
  6. #include "freertos/event_groups.h"
  7. #include "esp_system.h"
  8. #include "esp_event.h"
  9. #include "esp_log.h"
  10. #include "esp_attr.h"
  11. #include "esp_sleep.h"
  12. // #include "nvs_flash.h"
  13. #include "esp_sntp.h"
  14. void setup_time(void);
  15. std::string gettimestring(const char * frm);
  16. std::string ConvertTimeToString(time_t _time, const char * frm);
  17. void setTimeZone(std::string _tzstring);
  18. void reset_servername(std::string _servername);
  19. void setBootTime();
  20. time_t getUpTime();