   //  Serial.println(url);
 
 
+if (millis() - 200 >= timer_send_data_wifi) {
+    timer_send_data_wifi = 0;
 
   // This will send the request to the server
   client.print(String("POST ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n");

void setup() {
  Serial.begin(115200);
  delay(10);


  Serial.begin(9600);
  Wire.begin(2, 14);
  accel.begin(BMA250_range_2g, BMA250_update_time_4ms);//This sets up the BMA250 accelerometer
  USE_SERIAL.begin(115200);
  // USE_SERIAL.setDebugOutput(true);


  client.print(tsData.length());
  client.print("\r\n\r\n");
  client.print(tsData);
Serial.println(tsData);
  client.print("Connection: close\r\n\r\n");


    row = "";
    // Read all the lines of the reply from server and print them to Serial
    //  while(client.available()){
    //    String line = client.readStringUntil('\r');
    //    Serial.print(line);
    //  }

    //  Serial.println();
    //  Serial.println("closing connection");
  }
}

