title: A6 gsm/gprs module TCP/IP connection to Cloud
body: <p>I want to send data with <strong>A6 GSM/GPRS</strong> module to <strong><em>data.sparkfun.com</em></strong> cloud service. I am using these AT commands:</p>
  
  <pre><code>// Setting up network 
  
  AT+CGATT?
  AT+CGATT=1
  AT+CGDCONT=1,"IP","internet"
  AT+CGACT=1,1
  AT+CIPSTATUS
  AT+CIFSR
  
  // Start the TCP/IP connection to the server
  
  AT+CIPSTART="TCP","54.86.132.254",80    // PROBLEM STARTS HERE       
  AT+CIPSTATUS
  AT+CIPSEND
  GET /input/***********?private_key=****************&amp;temp=45.2 HTTP/1.1&lt;cr&gt;&lt;lf&gt;Host:data.sparkfun.com&lt;cr&gt;&lt;lf&gt;Connection:keep-alive&lt;cr&gt;&lt;lf&gt;
  ^z
  </code></pre>
  
  <p>When I enter this command <code>AT+CIPSTART="TCP","data.sparkfun.com",80</code> I will get back <strong>CONNECT OK</strong>(TCP connection success) and just after that it will automatically close it <strong>+TCPCLOSED:0</strong>(TCP connection is closed by remote server). There is no time to enter the <strong>AT+CIPSEND</strong> command because the TCP connection is lost.</p>
  
  <p>I tried to make my own nodejs server but still the same problem.</p>
  
  <p>How to keep the connection alive until I can send data and then close the  connection with <strong>AT+CIPCLOSE</strong> command?</p>