     client.println("Content-Type: application/json"); 
     client.println("Connection: close");  
     client.print("Content-Length: "); 
-    client.println(jsonData.length()); 
+    client.println(value.length()); 
     client.println(); 
-    client.print(jsonData); 
+    client.print(value); 
     client.println(); 
   } 
   waitForResponse();
-  switchSampleType();
-}
-
-void switchSampleType(){
-if (sampleType == phenomCount) sampleType = 1;
-    else sampleType++;
 }
 
 void waitForResponse()

  // if there are incoming bytes available 
  // from the server, read them and print them: 
  boolean repeat = true; 
  do{
    if (client.available()) 
    { 
      char c = client.read();

  }
  while (repeat);
}
