- Mon Aug 17, 2015 6:13 pm
#26300
Good ! you've now few steps further !
For Serial.print("AT\r\n"), yes, you're right, in a sketch, the escaping is required.
I'm not sure that I understand your next question ...
You accumulate characters from serial, when seeing "+IPD,2,", you then look for character count 169 followed by :, then you continue to accumulate characters until 169 characters are received. Then you need to parse last line to exctract the numbers.
What do you mean by "hang" ? after receiving the answer, you are not able to type a new GET request ? strange ...
By the way, do you really need to have a ESP with a separate Arduino in your project ? What the Arduino is used for ?
Because you can use ArduinoIDE for ESP and do all the same job much more easily with a HTTPClient sketch instead of having all those AT commands with answer parsing ... (Keep your Arduino for other project)