Code: Select allvoid setup() {
pinMode(13, OUTPUT); // This the onboard LED
pinMode(8, OUTPUT); // This is connected to the buzzer
Serial.begin(115200); //Initiate the Serial comm
Serial.print("+");
Serial.print("+");
Serial.print("+"); // Enter the AT mode
delay(500); // Slow down and wait for connectin establishment
}
void loop(){
Serial.println("AT+NAME=50");
delay(2000);
Serial.println("AT+NAME=100");
delay(2000);
Serial.println("AT+NAME=200");
delay(2000);
}
void enterATMode(){
Serial.begin(115200); //Initiate the Serial comm
delay(1000);
Serial.print("+");
Serial.print("+");
Serial.print("+"); // Enter the AT mode
}