I have built a Lora receiving circuit. There I have Lora with Address 2
I am connecting the second Lora with Address 4 to PC via UART and from Serial Monitor I can send data by issuing commands e.g
AT+SEND=2,4,LORA
On a receiver I see
+RCV=4,4,LORA,-5,11
Which indicates that I received LORA text from lora with address 4.
So now I want to do the same withing a code in the transmitter circuit
In the setup I open serial communication
Lora is conneted in the following way
Lora Arduino
GND GND
VCC VCC
RX TX
TX RX
Serial.begin(115200);
delay(3000);
Serial.print("AT+SEND=2,4,LORA\r\n");
Somhere I read that new line and CR is necessary.
Unfrtunately this does not work. I think I have tried all possible combinations
Serial.println("AT+SEND=2,4,LORA");
Serial.println("AT+SEND=2,4,LORA\r");
Serial.print("AT+SEND=2,4,LORA\n");
Serial.print("AT+SEND=2,4,LORA\r");
I run out of ideas.
Any suggestions what may be wrong?