storing variables in single array for transmission

Dependencies:   SDFileSystem dspmodified mbed

Fork of FTPGET_Merged by Pravin Magar

Revision:
1:56e7680a6339
Parent:
0:f2467c077504
Child:
2:e5b9aefbcdeb
--- a/merged_code.cpp	Sat Feb 14 05:58:02 2015 +0000
+++ b/merged_code.cpp	Mon Feb 16 11:02:26 2015 +0000
@@ -35,6 +35,7 @@
 char pathDCdetect[100]   ="";
 char pathfft[100]="";
 //char putpathname[100]="";
+
 char filenameAC[100]   ="";
 char filenameDC[100]   ="";
 char filenamefft[100]   ="";
@@ -702,12 +703,14 @@
                          wait(5);
                          ftp_put(2);
                      }
+                     // Delete the particular Folder Case : 4
                      else if(atoi(token) ==4)
                      {
                          //FOR DELETING THE SELECTED FILE
                         pc.printf("\r\n Deleting....\r\n");
-                        sprintf(removefile,"%s",ftpget);
-                    
+                        token = strtok(NULL,s);
+                        sprintf(removefile,"%s",token);
+                        pc.printf("Removefile is %s\r\n",removefile);
                             if(removefile==NULL)
                             {
                                 pc.printf("\r\n NULL Condition\r\n");