serial bluetooth

merlin2049er:
I uploaded this code to my arduino, and paired my bluetooth phone with the bluetooth module connected to the arduino.

Do I also need to define the bluetooth serial pins (Rx,Tx). If they are define in the sketch, does that mean I've got a 2nd com port?

/*

Serial Event example

SerialEvent occurs whenever a new data comes in the
hardware serial RX.  This routine is run between each
time loop() runs, so using delay inside loop can delay
response.  Multiple bytes of data may be available.

This project uses hardware serial, and you don't need to specify anything. Specifying pins won't win you any prizes. If you want to use extra serial ports, you can do so by using the software serial library, which enables you to use certain other pins as well as the regulation hardware serial pins.

You have already succeeded in pairing between bluetooth and phone. If you have not already done so, all you need do now is correctly connect bluetooth to Arduino hardware serial pins, A4,A5 on Uno, or D0,D1 on Mega