 
   if (prot == TCP){
     if(!SendCIPSTART(TCP)){
-      Serial.println("AT+CIPSTART => FAIL"); 
-    } else Serial.println("AT+CIPSTART => OK");
+      delay(1);
+      //Serial.println("AT+CIPSTART => FAIL"); 
+    } else {
+      delay(1);
+      //Serial.println("AT+CIPSTART => OK");
+    }
   }else {
     if(!SendCIPSTART(UDP)){
-      Serial.println("AT+CIPSTART => FAIL"); 
-    } else Serial.println("AT+CIPSTART => OK");    
-  }
-  
-  delay(1000);
+      delay(1);
+      //Serial.println("AT+CIPSTART => FAIL"); 
+    } else {
+      delay(1);
+      //Serial.println("AT+CIPSTART => OK");    
+    }
+  }
+  
+  //delay(1000);
+  delay(100);
 
   //copy latitude and longitude to send via TCP server
   memset(data2db,'\0',sizeof(data2db));

}//BASICALLY TO RESET THE BUFFER*/

void PrintSecondsElapsed(){
  Serial.print("******************Seconds : ");
  Serial.println(seconds);
  seconds++;
} 


  delay(50);
   

/*  posBuf=0;
  i=0;
  //for(int i=0;i<7;i++){
  while((posBuf<=99)&&(i<15)){ 
