Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to send data colelcted from Sensors to our Server. Protocol: TCP Modes: Wifi (ESP8266) or GPRS (SIM 900A)

Help needed: I am able to get a IP address in both devices, it always fails with establishing TCP connection.

I get 3 errors: 1. Link not found 2. Busy 3. TCP error.

Attached is screenshots What am I doing wrong? Is it serverside or code side?

Any help welcome. Thank you, Gautam

Shows IP Address and connection status

Errors shown

share|improve this question
1  
I count 87 characters in your entire request, not 83. Count again and include the CRLF at the end of each line. – TisteAndii May 23 at 15:03
    
Can you use a REST client app on a workstation to get any additional information and spot problems like the length? Chrome has some extensions that might help. – Matt May 23 at 15:09
    
The same code is working on another server :( – Gautam Prakash May 24 at 8:53
1  
gtmprksh.in/test/ is not a valid address for a TCP connection. http://gtmprksh.in/test/recieve.php?app=20&org=2 is not a valid HTTP Host header. – gre_gor May 25 at 15:05
    
gre_gor is right. Your Host argument is not valid. The rest of the path (/test/receive...) should be in the first line after the GET keyword. – TisteAndii May 28 at 14:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.