-->
Page 1 of 1

POST Problems

PostPosted: Sun Mar 27, 2016 4:49 pm
by stockdam
Hi, I am only starting out with an ESP-07 and want to use it to POST data to a web database.

I'm collecting data using an Arduino and then using AT commands to control the ESP module.

Connecting to my WIfi router is easy.

I can use GET successfully to send data but only up to a point. I'm only able to send 5 fields before GET stops working.

I tried POST but didn't get too far. I setup a test server on an Orange PI and then tried to send data to it (the server isn't setup to store the data, just to monitor the incoming data that is sent to it using tcpdump).

The POST header is find until I try to send more than about 170 bytes and then some of the data is incorrect or missing.

I had reflashed the ESP (no real reason other than learning) so I'm not sure if this has caused the problem.

Are there any issues when sending more than about 170 bytes using AT+CIPSEND? As I said things work fine when using GET for short strings but when I try to send more data then things stop working?

I have no problem using telnet to POST the same data to the server so it's definitely the ESP module that is the problem.

All of the code is running on the Arduino and the only thing that I am doing is sending AT commands to the ESP module.

Re: POST Problems

PostPosted: Mon Mar 28, 2016 12:27 pm
by stockdam
So looking at my ESP-07 it appears that the component marked in red below is missing.


Image


I've seen some posts that state that this component is removed to isolate the onboard antenna and therefore an external antenna is needed. However I've seen some pictures of boards that are the same as mine.........missing component.

For thing is now clear........the range of my board is very short and I feel that it is an antenna issue.

Re: POST Problems

PostPosted: Mon Mar 28, 2016 4:05 pm
by stockdam
Looks like \n is not transmitted by the ESP module when sent by the arduino.

So \r\n is only transmitted as \r.

Why?