From 129a2650c22915bc789b6bdbc9d360bd97059e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gassmann?= Date: Sat, 28 Sep 2024 18:05:02 +0200 Subject: [+] WiFi with dpp on first setup + SNTP --- components/sntp/time_sntp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 components/sntp/time_sntp.h (limited to 'components/sntp/time_sntp.h') diff --git a/components/sntp/time_sntp.h b/components/sntp/time_sntp.h new file mode 100644 index 0000000..a8a894e --- /dev/null +++ b/components/sntp/time_sntp.h @@ -0,0 +1,18 @@ +#ifndef SNTP_H +#define SNTP_H + +#include +#include +#include "esp_system.h" +#include "esp_event.h" +#include "esp_log.h" +#include "esp_netif.h" +#include "esp_netif_sntp.h" +#include "esp_sntp.h" + +static const char *SNTP_TAG = "SNTP"; + +void set_tz(char* tz); +void obtain_time(char t[4]); +void sync_time(void); +#endif \ No newline at end of file -- cgit v1.2.3