#pragma once #ifndef TIMESNTP_H #define TIMESNTP_H #include #include #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_event.h" #include "esp_log.h" #include "esp_attr.h" #include "esp_sleep.h" #include "esp_sntp.h" std::string getCurrentTimeString(const char * frm); std::string ConvertTimeToString(time_t _time, const char * frm); bool getTimeIsSet(void); bool getUseNtp(void); bool setupTime(); #endif //TIMESNTP_H