After a lot of problems I managed to upload my program to my Arduino BT. Below you can see my very basic code. The outgoing COM of my Arduino BT is COM8 the incoming COM9. I was wondering how I can receive "hello". When I use the serial monitor on COM8 with the right baudrate it displays "hello","hello","hello", etc. When I use the serial monitor on COM9 it does not display any data. Is the data I see in COM8 the data the Arduino IDE is generating or is it the data coming back from the bluetooth? (Why is it on the outgoing COM then?) How can I read the incoming data?
int ledPin = 12; // LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup() {
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
Serial.begin(115200);
}
void loop()
{
Serial.println("hello");
digitalWrite(ledPin, HIGH); // set the LED on
delay(100); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(100); // wait for a second
}