mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 20:16:55 +03:00
* Modify time_sntp * Update time_sntp.cpp * Update time_sntp.cpp * update * Update interface_influxdb.cpp * Update interface_influxdb.cpp * Update time_sntp.cpp * Upload * Update interface_influxdb.cpp * Update interface_influxdb.cpp * Update interface_influxdb.cpp * Remove Time Convert vom influx Interface
34 lines
636 B
C++
34 lines
636 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_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();
|
|
|
|
bool time_manual_reset_sync(void);
|
|
|
|
extern int LocalTimeToUTCOffsetSeconds;
|
|
|
|
|
|
#endif //TIMESNTP_H
|