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@9:416cbcabbddd, 2015-08-11 (annotated)
- Committer:
- uasonice
- Date:
- Tue Aug 11 19:25:31 2015 +0000
- Revision:
- 9:416cbcabbddd
- Parent:
- 3:8c4e0e7c8cea
- Child:
- 12:974f7a96d6ab
update: camera baud rate down to 14400
Who changed what in which revision?
| User | Revision | Line number | New 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 | 3:8c4e0e7c8cea | 30 | void fileServer(void); |
| uasonice | 3:8c4e0e7c8cea | 31 | |
| uasonice | 3:8c4e0e7c8cea | 32 | #endif // __REV_HTTPFILE_H__ |
| uasonice | 3:8c4e0e7c8cea | 33 | |
| uasonice | 3:8c4e0e7c8cea | 34 |
