HOme Sheriff And Lamp

Dependencies:   CameraC328 HCSR04 SDFileSystem WIZnetInterface mbed

Fork of HoSAL by pi bae

Committer:
uasonice
Date:
Thu Aug 13 19:35:01 2015 +0000
Revision:
13:cefc034543a5
Parent:
12:974f7a96d6ab
update: web server image view

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uasonice 3:8c4e0e7c8cea 1 /*
uasonice 3:8c4e0e7c8cea 2 # coded by revival / uasonice (at) gmail.com
uasonice 3:8c4e0e7c8cea 3 # DATE: 2015/08/10 / Mon Aug 10 00:01:54 KST 2015
uasonice 3:8c4e0e7c8cea 4 #
uasonice 3:8c4e0e7c8cea 5 # DESCRIPTION:
uasonice 3:8c4e0e7c8cea 6 # http file server
uasonice 3:8c4e0e7c8cea 7 */
uasonice 3:8c4e0e7c8cea 8
uasonice 3:8c4e0e7c8cea 9 #ifndef __REV_HTTPFILE_H__
uasonice 3:8c4e0e7c8cea 10 #define __REV_HTTPFILE_H__
uasonice 3:8c4e0e7c8cea 11
uasonice 3:8c4e0e7c8cea 12 /*
uasonice 3:8c4e0e7c8cea 13 #define MAC "\x00\x08\xDC\x11\x34\x78"
uasonice 3:8c4e0e7c8cea 14 #define IP "192.168.5.5"
uasonice 3:8c4e0e7c8cea 15 #define MASK "255.255.255.0"
uasonice 3:8c4e0e7c8cea 16 #define GATEWAY "192.168.5.1"
uasonice 3:8c4e0e7c8cea 17 */
uasonice 3:8c4e0e7c8cea 18
uasonice 3:8c4e0e7c8cea 19 #define HTTPD_MAX_REQ_LENGTH 512
uasonice 3:8c4e0e7c8cea 20 #define HTTPD_MAX_HDR_LENGTH 255
uasonice 3:8c4e0e7c8cea 21 #define HTTPD_MAX_FNAME_LENGTH 127
uasonice 3:8c4e0e7c8cea 22 #define HTTPD_MAX_DNAME_LENGTH 127
uasonice 3:8c4e0e7c8cea 23
uasonice 3:8c4e0e7c8cea 24 extern TCPSocketServer server;
uasonice 3:8c4e0e7c8cea 25 extern TCPSocketConnection client;
uasonice 3:8c4e0e7c8cea 26 extern DigitalOut led1; //server listning status
uasonice 3:8c4e0e7c8cea 27 extern DigitalOut led2; //socket connecting status
uasonice 3:8c4e0e7c8cea 28
uasonice 3:8c4e0e7c8cea 29 void get_file(char* uri);
uasonice 13:cefc034543a5 30 void fileServer(/*void const *data*/);
uasonice 3:8c4e0e7c8cea 31
uasonice 3:8c4e0e7c8cea 32 #endif // __REV_HTTPFILE_H__
uasonice 3:8c4e0e7c8cea 33
uasonice 3:8c4e0e7c8cea 34