ESP32 Bluetooth w/ HC-05

Procedures to operate built-in Classic Bluetooth Module of 30-pin ESP32 Dev Module as a Slave Device from Bluetooth Device (Master) of Android Phone:
1. Upload the following sketch into ESP32.

#include "BluetoothSerial.h"

#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif

BluetoothSerial SerialBT;

void setup() 
{
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
}

void loop() 
{
  if (Serial.available()) 
  {
    SerialBT.write(Serial.read());
  }
  if (SerialBT.available()) 
  {
    Serial.write(SerialBT.read());
  }
  delay(20);
}

2. Open Serial Monitor of ESP32 at Bd = 115200.
3. Open BT Terminal in your Android Phone.
4. Execute "Scan" to detect the presence of the BT Module of ESP32 as "ESP32test".
5. Pair the two BT Modules.
6. Send 'A' from the ASCII-Mode BT Terminal of Andriod Phoe.
7. Check that 'A' has appeared on the OutputBox of Serial Monitor.
8. Send "OK" from the InputBox of Serial Monitor.
9. Check that "OK" has appeared on the BT Terminal of Android Phone.
InputBox of Serial MOnitor.

10. Check that "OK" has appeared on the BT Terminal of Android Phone