-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMksHTTPUpdateServer.h
39 lines (29 loc) · 981 Bytes
/
MksHTTPUpdateServer.h
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
38
39
#ifndef __HTTP_UPDATE_SERVER_H
#define __HTTP_UPDATE_SERVER_H
//class ESP8266WebServer;
class RepRapWebServer;
class MksHTTPUpdateServer
{
private:
bool _serial_output;
// ESP8266WebServer *_server;
RepRapWebServer *_server;
static const char *_serverIndex;
static const char *_failedResponse;
static const char *_successResponse;
char * _username;
char * _password;
bool _authenticated;
public:
MksHTTPUpdateServer(bool serial_debug=false);
// void setup(ESP8266WebServer *server)
void setup(RepRapWebServer *server)
{
setup(server, NULL, NULL);
}
//void setup(ESP8266WebServer *server, const char * path)
//void setup(ESP8266WebServer *server, const char * username, const char * password)
//void setup(ESP8266WebServer *server, const char * path, const char * username, const char * password);
void setup(RepRapWebServer *server, const char * username, const char * password);
};
#endif