long delay when receiving data from arduino uno

(deleted)

You need to post your Arduino program. It would also help if you describe (in English rather than code) how the interaction between your web program and the Arduino is intended to work.

...R

(deleted)

rfr26604:
I already modified the post.

For the future, please don't make big changes to earlier Posts after there has been a Reply as if will confuse anyone reading the Thread from top to bottom. Changes to correct typos are fine.

You did not respond to my request for a description of how the system is intended to work.

...R

You seem to have several long delay()s in the Arduino program - they are probably the cause of your problem. However its is not obvious what part of the Arduino program is sending data to the web server

Some elements of your code (the function name recvWithEndMarker() and the variable newData) are reminiscent of code in my Tutorial Serial Input Basics however the actual code in your function is something that I deliberately avoided in my tutorial.

...R