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
Diff: rev_httpFile.cpp
- Revision:
- 12:974f7a96d6ab
- Parent:
- 10:0868448017da
- Child:
- 13:cefc034543a5
diff -r 7db34a66a751 -r 974f7a96d6ab rev_httpFile.cpp
--- a/rev_httpFile.cpp Wed Aug 12 11:16:46 2015 +0000
+++ b/rev_httpFile.cpp Thu Aug 13 18:35:55 2015 +0000
@@ -58,10 +58,11 @@
DM_FLN("%s", dirName);
DIR *subDir = opendir(dirName);
if (subDir != NULL) {
- /* sprintf(httpHeader,"<li><a href=\"./%s/\">%s/</a></li>", p->d_name, p->d_name); */
- sprintf(httpHeader,"<li><img width=50 height=50 src=\"./%s/\">%s/</li>", p->d_name, p->d_name);
+ sprintf(httpHeader,"<li><a href=\"./%s/\">%s/</a></li>", p->d_name, p->d_name);
} else {
+ //strlen(p->d_name);
sprintf(httpHeader,"<li><a href=\"./%s\">%s</a></li>", p->d_name, p->d_name);
+ //sprintf(httpHeader,"<li><img width=50 height=50 src=\"./%s\">%s</li>", p->d_name, p->d_name);
}
client.send(httpHeader,strlen(httpHeader));
}
@@ -94,10 +95,10 @@
}
}
-void fileServer(void)
+void fileServer(void const *data)
{
int ret;
-
+
//DM_FLN("Wait for new connection...");
ret = server.accept(client);
if(ret < 0) return;
