Files
CYD_Bad/src/weifi.h
2024-07-08 15:58:12 +02:00

35 lines
553 B
C

#ifndef WEIFI_H
#define WEIFI_H
#include <WiFi.h>
#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