I have a school project in Internet of Things where I have to create a bluetooth connection on an Arduino UNO. Here is the code in C I use for that :
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
mySerial.begin(9600);
Serial.println("Start Communication");
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
And the montage is the following : Montage
The issue is when I upload the code on the Arduino to check if the connection is made, I enter the "AT" command that should return me "OK" to confirm that the connection is properly set. However nothing happens. Here is a picture :Serial Monitor I am stranded and I do not know what to do, could someone help me
Thank you very much