You Reply: I have tried Serial.print("+++"); to enter AT mode but in vain. Should I be aware of any "AT" settings, so that the code below might work? Since, the name of Bluetooth by default is "BlunoV1.8", the LED 13 should blink for 3 seconds continuously. But, currently, I am not able to receive any response even after checking out Serial Monitor.
[code]char charReceived;
void setup()
{
pinMode(13, OUTPUT);
Serial.begin(115200);
Serial.print("+++");
Serial.println("AT+NAME=?");
}
void serialEvent()
{
while (Serial.available())
{
charReceived = Serial.read();
if(charReceived == 'B') {
digitalWrite(13, HIGH);
delay(3000);
digitalWrite(13, LOW);
delay(3000);
}
}
}
void loop()
{
delay(1000);
Serial.println("AT+NAME=?");
}
}[/code]