mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
775 B
38 lines
775 B
8 years ago
|
#ifndef WEB_SERVER_H
|
||
|
#define WEB_SERVER_H
|
||
|
|
||
|
#include <esp8266.h>
|
||
|
|
||
|
#include "httpd.h"
|
||
|
#include "cmd.h"
|
||
|
|
||
|
typedef enum
|
||
|
{
|
||
|
LOAD=0, // loading web-page content at the first time
|
||
|
REFRESH, // loading web-page subsequently
|
||
|
BUTTON, // HTML button pressed
|
||
|
SUBMIT, // HTML form is submitted
|
||
|
|
||
|
INVALID=-1,
|
||
|
} RequestReason;
|
||
|
|
||
|
typedef enum
|
||
|
{
|
||
|
WEB_STRING=0, // the value is string
|
||
|
WEB_NULL, // the value is NULL
|
||
|
WEB_INTEGER, // the value is integer
|
||
|
WEB_BOOLEAN, // the value is boolean
|
||
|
WEB_FLOAT, // the value is float
|
||
|
WEB_JSON // the value is JSON data
|
||
|
} WebValueType;
|
||
|
|
||
|
void WEB_Init();
|
||
|
|
||
|
char * WEB_UserPages();
|
||
|
|
||
|
int WEB_CgiJsonHook(HttpdConnData *connData);
|
||
|
void WEB_Data(CmdPacket *cmd);
|
||
|
|
||
|
#endif /* WEB_SERVER_H */
|
||
|
|