Hello I have a problem. While using REYAX RYLR896 radio (controlled by serial comands) I get this +ERR=1. Which is "There is not “enter” or 0x0D 0x0A in the end of the AT Command."
But as you can see in my code I have the NL and CR in the string end. Why am I getting this error?
String zpr = "AT";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
zpr = zpr + "\r\n";
delay(5000);
Serial1.print(zpr);
while(true){
if(Serial1.available()){
Serial.print(Serial1.readString());
}
}
}