#ifndef WEIFI_H #define WEIFI_H #include #include "time.h" #include "main.h" #ifdef MAIN struct tm timeinfo; #else extern struct tm timeinfo; #endif #ifdef WEIFI const char* ssid = "Mizar"; const char* password = "RingNebelM57"; const char *ntpServer = "pool.ntp.org"; const long gmtOffset_sec = 3600; const int daylightOffset_sec = 3600; #endif // #warning "You need to set the SSID and PASSWORD in weifi.h" void connectToWifi(); struct tm gettheTime(int repeat); void printLocalTime(); // void WiFiEvent(WiFiEvent_t event); #endif