diff options
author | root <root@lamia.panaceas.james.local> | 2015-07-21 08:33:53 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2015-07-21 08:33:53 +0100 |
commit | 0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39 (patch) | |
tree | 1a78099f912d094c7793e15ff9de75d1fc9d1253 /polycom_xmit/webserver.h | |
download | polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.tar.gz polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.tar.bz2 polycom-0a8e1c08e10d53f58d9e67d5bca09b8ae6a16c39.zip |
fish
Diffstat (limited to 'polycom_xmit/webserver.h')
-rw-r--r-- | polycom_xmit/webserver.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/polycom_xmit/webserver.h b/polycom_xmit/webserver.h new file mode 100644 index 0000000..3db88fa --- /dev/null +++ b/polycom_xmit/webserver.h @@ -0,0 +1,45 @@ +#ifndef __USER_WEBSERVER_H__
+#define __USER_WEBSERVER_H__
+
+#define SERVER_PORT 80
+#define SERVER_SSL_PORT 443
+
+#define URLSize 10
+
+typedef enum Result_Resp {
+ RespFail = 0,
+ RespSuc,
+} Result_Resp;
+
+typedef enum ProtocolType {
+ GET = 0,
+ POST,
+} ProtocolType;
+
+typedef enum _ParmType {
+ SWITCH_STATUS = 0,
+ INFOMATION,
+ WIFI,
+ SCAN,
+ REBOOT,
+ DEEP_SLEEP,
+ LIGHT_STATUS,
+ CONNECT_STATUS,
+ USER_BIN
+} ParmType;
+
+typedef struct URL_Frame {
+ enum ProtocolType Type;
+ char pSelect[URLSize];
+ char pCommand[URLSize];
+ char pFilename[URLSize];
+} URL_Frame;
+
+typedef struct _rst_parm {
+ ParmType parmtype;
+ struct espconn *pespconn;
+} rst_parm;
+
+void user_webserver_init(uint32 port);
+
+#endif
|