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.
37 lines
464 B
37 lines
464 B
#ifndef WEB_SERVER_H
|
|
#define WEB_SERVER_H
|
|
|
|
#include <esp8266.h>
|
|
|
|
#include "httpd.h"
|
|
#include "cmd.h"
|
|
|
|
typedef enum
|
|
{
|
|
LOAD=0,
|
|
REFRESH,
|
|
BUTTON,
|
|
SUBMIT,
|
|
|
|
INVALID=-1,
|
|
} RequestReason;
|
|
|
|
typedef enum
|
|
{
|
|
WEB_STRING=0,
|
|
WEB_NULL,
|
|
WEB_INTEGER,
|
|
WEB_BOOLEAN,
|
|
WEB_FLOAT,
|
|
WEB_JSON
|
|
} WebValueType;
|
|
|
|
void WEB_Init();
|
|
|
|
char * WEB_UserPages();
|
|
|
|
int WEB_CgiJsonHook(HttpdConnData *connData);
|
|
void WEB_JsonData(CmdPacket *cmd);
|
|
|
|
#endif /* WEB_SERVER_H */
|
|
|
|
|