Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CameraC328 HCSR04 SDFileSystem WIZnetInterface mbed
Fork of HoSAL by
rev_httpFile.h
00001 /* 00002 # coded by revival / uasonice (at) gmail.com 00003 # DATE: 2015/08/10 / Mon Aug 10 00:01:54 KST 2015 00004 # 00005 # DESCRIPTION: 00006 # http file server 00007 */ 00008 00009 #ifndef __REV_HTTPFILE_H__ 00010 #define __REV_HTTPFILE_H__ 00011 00012 /* 00013 #define MAC "\x00\x08\xDC\x11\x34\x78" 00014 #define IP "192.168.5.5" 00015 #define MASK "255.255.255.0" 00016 #define GATEWAY "192.168.5.1" 00017 */ 00018 00019 #define HTTPD_MAX_REQ_LENGTH 512 00020 #define HTTPD_MAX_HDR_LENGTH 255 00021 #define HTTPD_MAX_FNAME_LENGTH 127 00022 #define HTTPD_MAX_DNAME_LENGTH 127 00023 00024 extern TCPSocketServer server; 00025 extern TCPSocketConnection client; 00026 extern DigitalOut led1; //server listning status 00027 extern DigitalOut led2; //socket connecting status 00028 00029 void get_file(char* uri); 00030 void fileServer(/*void const *data*/); 00031 00032 #endif // __REV_HTTPFILE_H__ 00033 00034
Generated on Mon Jul 18 2022 23:38:57 by
1.7.2
