Files
AI-on-the-edge-device/code/components/jomjol_time_sntp/time_sntp.h
Slider0007 d3d241c7b9 Logfile: Print start indication block after time sync (#2106)
* logfile: Print start indication after time sync

* No time set at boot -> keep log_1970-01-01.txt
2023-03-01 20:55:12 +01:00

30 lines
581 B
C++

#pragma once
#ifndef TIMESNTP_H
#define TIMESNTP_H
#include <string>
#include <time.h>
#include <sys/time.h>
#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 getTimeWasNotSetAtBoot(void);
bool getUseNtp(void);
bool setupTime();
#endif //TIMESNTP_H