Interfacing between HC-05, my pc and an Androidd phone. Help!

So I have an HC-05 module and want to use it as a second serial port on my Leonardo. I have my USB cable plugged in, and my goal is to write something on my pc, and see it on my phone. I am using the SoftwareSerial library to make pins 8 and 9 a serial port for the HC-05 which pairs with my phone.

#include <SoftwareSerial.h>
SoftwareSerial BTserial(8, 9); // RX | TX
 
const long baudRate = 38400; 
char c=' ';
boolean NL = true;
 
void setup() 
{
    Serial.begin(9600);
}
 
void loop()
{
 
    // Read from the Bluetooth module and send to the Arduino Serial Monitor
    if (BTserial.available())
    {
        c = BTserial.read();
        Serial.write(c);
    }
 
 
    // Read from the Serial Monitor and send to the Bluetooth module
    if (Serial.available())
    {
        c = Serial.read();
        BTserial.write(c);   
 
        // Echo the user input to the main window. The ">" character indicates the user entered text.
        if (NL) { Serial.print(">");  NL = false; }
        Serial.write(c);
        if (c==10) { NL = true; }
    }
 
}

I am using this app: "https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal"

Help! Thanks in advance

Help!

Perhaps you'll notice that you needed to call Serial.begin() before you could actually use the serial port.

Why do you (mistakenly) think that you don't need to do the same before you can use the software serial port?

With a Leonardo there is no need to use SoftwareSerial as it has a Serial1 port on pins 0 and 1

...R

Oh sorry. I did put a line in saying

BTSerial.begin(9600);

but forgot to write it here. Anyway point still stands. Anything I type on my PC does not show up on my phone, though they both indicate they are connected (blinks).

And aren't pins 0 and 1 used in the serial port connecting my PC to my Leonardo?

No, not on a Leonardo. The blinking LED is not a sure indicator of connection, until you know it is a sure indicator, and there is a fair chance that here it isn't. You should properly pair the devices and then note the confrmation of connection in the android app.

Ikram101:
And aren't pins 0 and 1 used in the serial port connecting my PC to my Leonardo?

Not on the Leonardo.

...R