Hello fellows,
I plug the HC-05 module on Arduino Due, press the little button, start everything pluggin that on USB and the blinking pattern indicates that it is on AT Mode (Blinking at 1Hz rate). I then send Serial Monitor commands but I get no response!
It is not burned since it responds with the blinking pattern. I can see the HC-05 with my smartphone, I can connect to it using the default PIN "1234" and it changes the blinking pattern again. So I think it is working.
What am I doing wrong??
Serial1 on due is 18,19 pins.
String command = "";
void setup()
{
Serial.begin(9600);
Serial.println("Type commands for AT:");
Serial1.begin(38400);
}
void loop()
{
if (Serial.available())
{
while (Serial.available()) {
command += (char)Serial.read();
}
delay(10);
Serial1.println(command);
}
command = "";
if (Serial1.available())
{
while (Serial1.available()) {
command += (char)Serial1.read();
}
delay(10);
Serial.println(command);
}
command = "";