Reading +IPD response from serial.read() using Arduino UNO and ESP8266

Robin2:
I am confused.

I thought you are trying to read data from your ESP device and I presume that is what you are using SoftwareSerial for. However your code in recvWithStartEndMarkers() is reading from Serial. Shouldn't it be reading from esp?

If I have got things wrong please put me right.

...R

Ohh i am so sorry about that i must have over looked that, i have corrected the code and changed it to esp.read(). I ran it again but still the same results.
Also the if statement in the showNewData() function is not executing. I wrote an else statement after that just to be sure and it was executed.

void showNewData() {
  if (newData == true) {
    Serial.print("This just in ... ");
    Serial.println(receivedChars);
    newData = false;
  }
  else
    Serial.print("not working ");
}