RX buffer on the ESP is 256
SoftwareSerial RX buffer is 64
After the buffer fills, bytes are just dropped, leading to missing data.
To see if this is the issue, add a line like:
if (espserial.overflow()) {
Serial.println("Overflow");
}
into the routine that is reading in from the ESP serial and writing to your output serial.
You can modify the SoftwareSerial lib and up the buffer to 256, which seams to fix a lot of this, but I would rather have some proper flow control. Alternatively, we could rebuild the FW with a reduced buffer or add an AT cmd to change the buffer size (though that might get gross). Anyone know if we will get source to 922 so we don't fork the feature set?