converting int or byte to ascii

Sorry guys but i cant copy and paste empty screen. Receiving function is just sitting and waiting for any string no ascii filtering. Serial.available() is waiting 5 whole seconds and not getting anything from esp.Even with serial.println(“AT”) im not getting any reply from esp. seems like esp is freezing.
With serial.write without 1ms delay same thing its freezing. With 1ms delay its working.

With softwareserial example im sending through serial monitor any esp command and am getting reply.

If its cos of long wires that esp cant read at that speed then why via serial monitor its responding.