#ifndef NETWORK_H #define NETWORK_H #include #include #define POSIX_TIMEZONE_STRING "CET-1CEST,M3.5.0,M10.5.0/3" #define SNTP_TIME_SYNC_INTERVAL_MINUTES (6 * 60) // 6 hours #define SNTP_SERVER "pool.ntp.org" ESP_EVENT_DECLARE_BASE(SNTP_EVENT); enum sntp_event_t { SNTP_EVENT_UNKNOWN = 0, SNTP_EVENT_SYNCED, }; struct wifi_network_t { const char ssid[32]; const char password[32]; bool hidden; }; struct wifi_networks_t { uint8_t num_nets; struct wifi_network_t nets[]; }; void init_wifi(const struct wifi_networks_t *nets, const char *hostname); #if SOC_EMAC_SUPPORTED void init_ethernet(const char *hostname); #endif #endif