-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_server.h
More file actions
37 lines (31 loc) · 800 Bytes
/
setup_server.h
File metadata and controls
37 lines (31 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SETUP_SERVER_H
#define SETUP_SERVER_H
#include <WebServer.h>
#include <ArduinoJson.h>
#include "oauth_handler.h"
#include "config_manager.h"
class SetupServer {
public:
SetupServer(OAuthHandler& oauth);
~SetupServer();
void begin();
void handleClient();
WebServer* server;
void handleCalendarList();
void handleUpcomingBins();
private:
OAuthHandler& oauthHandler;
struct Config {
String wifi_ssid;
String wifi_password;
};
Config config;
void handleRoot();
void handleSave();
void handleOAuth();
const char* getSetupPage();
void handleRestart();
void handleFactoryReset();
void handleSaveCalendar();
};
#endif