INFOBoard/lib/utils/utils.h

41 lines
639 B
C
Raw Normal View History

2022-01-08 18:32:31 +08:00
#ifndef __UTILS__
#define __UTILS__
#include <Arduino.h>
#include <ESP8266WiFi.h>
2022-01-08 18:32:31 +08:00
#define WiFiSSID "Info Board"
#define WiFipswd "cj160217"
// Variable Type Definition
typedef struct IPConfig {
IPAddress ip;
IPAddress gw;
IPAddress sn;
} IPConfig;
// Global Variable
extern String boardVersion;
2022-01-08 18:32:31 +08:00
extern String localIP;
extern IPConfig APStatic;
extern IPConfig STAStatic;
2022-01-08 18:32:31 +08:00
extern long follower;
extern long view;
extern long likes;
extern long dayView;
extern long weekView;
extern long monthView;
void initNtp();
String ntpTime();
void initData();
void getFollower();
void getViewAndLikes();
void getWebView();
2022-01-08 18:32:31 +08:00
#endif