title: Send continuous data from 4G module to server
body: <p>I have the Telit LE910 4G LTE module connected to a Teensy board (Arduino will do). While I am able to send data to my PHP server using HTTP requests (POST and GET), I am not able to send continuous data due to necessary delays for the server to respond back:</p>
  
  <pre><code>  [...]
    // SOCKET DIAL
    LTESerial.print("AT#SD=1,0,80,\"SERVER IP\"\r\n");
    delay(5000);
  
    // POST
    LTESerial.print("POST /server/index.php?data=");
    LTESerial.print(random(1000));
    LTESerial.print(" HTTP/1.1\r\n");
    LTESerial.print("Host: SERVER IP\r\n\r\n");  
    delay(5000);
    while (getResponse() &gt; 0);
  </code></pre>
  
  <p>This is simply an example (written here), but it somewhat illustrates what I am doing. The above code is supposed to be put inside a while loop, so that once the data is uploaded to a .txt file on the server, the module reconnects to the server and POST another data point.</p>
  
  <p>Obviously, I want to avoid these delays and parse data to the server as fast as possible (as soon as the data is available). This is why I opted for the 4G LTE version.</p>
  
  <p>Tweaking the delays might give me an extra second or so, but my project includes plotting a lot of data points in "real time", so it is very time sensitive.</p>
  
  <p>Any idea on how to send a continuous data stream to the server on 4G? I am thinking about buffering some data points and use FTP to upload the data, but I assume uploading files to the server might even take more time than now.</p>
  
  <p>Any help is much appreciated!</p>