fixed it by removing the following code:
while (!Serial.available());
Serial1.print(“AT+ROLE0”); // Sets the bluetooth module as a slave but doesn’t work
fixed it by removing the following code:
while (!Serial.available());
Serial1.print(“AT+ROLE0”); // Sets the bluetooth module as a slave but doesn’t work