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

Files at this revision

API Documentation at this revision

Comitter:
IOP
Date:
Tue Aug 11 05:36:28 2015 +0000
Parent:
2:4dfa60f33178
Commit message:
take picture function organization

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
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)
diff -r 4dfa60f33178 -r e6025c5b25e4 mbed.bld
--- a/mbed.bld	Wed Aug 05 23:53:43 2015 +0000
+++ b/mbed.bld	Tue Aug 11 05:36:28 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7
\ No newline at end of file