this camera C328 http sdcard file server example is for academy
Dependencies: CameraC328 SDFileSystem WIZnetInterface mbed
Insert below jpg file in your SDcard to take a picture in Web Server /media/uploads/IOP/take_a_picture.zip
Diff: main.cpp
- Revision:
- 3:e6025c5b25e4
- Parent:
- 2:4dfa60f33178
diff -r 4dfa60f33178 -r e6025c5b25e4 main.cpp --- a/main.cpp Wed Aug 05 23:53:43 2015 +0000 +++ b/main.cpp Tue Aug 11 05:36:28 2015 +0000 @@ -83,7 +83,7 @@ } for (int i = 0; i < CAPTURE_FRAMES; i++) { char fname[64]; - snprintf(fname, sizeof(fname), "/wfs/Snapshot%02d.jpg",i); + snprintf(fname, sizeof(fname), "/wfs/jpegSnapshot%02d.jpg",i); fp_jpeg = fopen(fname, "w"); err = camera.getJpegSnapshotPicture(jpeg_callback); // call the snapshot function @@ -284,7 +284,7 @@ snprintf(process_name,posOfLastSlash+1,"%s",path); if (EnDebugMSG) printf("\r\n>>process_name=%s",process_name); - sprintf(line_response,"<tr><td align=\"left\"><a href=\"%s\">../</a></td></tr>\n",process_name); + sprintf(line_response,"<tr><td align=\"left\"><a href=\"%s\">../reflash</a></td></tr>\n",process_name); snprintf(&(sentBuffer[strlen(sentBuffer)]),sizeof(sentBuffer),"%s",line_response); //append to buffer while((p = readdir(d)) != NULL) { if (EnDebugMSG)