Bluetooth HC-05 command delay

 BTSerial.begin(38400);  

The bluetooth module is connected to a SoftwareSerial port, BTSerial. That port is set to 38400.
I have tested the code in reply #21 with real hardware and I do get OK when sending AT and other AT commands work. The setting of the Serial port (serial monitor) is irrelevant.