WIP_20240708_1558
This commit is contained in:
16
src/weifi.h
16
src/weifi.h
@@ -2,17 +2,33 @@
|
||||
#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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user