POST Problems
Posted: Sun Mar 27, 2016 4:49 pm
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.
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.