This commit is contained in:
OMGiTzPomPom 2022-09-08 16:08:08 +02:00
parent 2a71c12b13
commit cdb9dc2121
2 changed files with 6 additions and 5 deletions

View File

@ -5,9 +5,9 @@ void setup() {
Serial.begin(9600); Serial.begin(9600);
while (!Serial); while (!Serial);
Serial.println("LoRa Receiver"); Serial.println("Applejack is best pony ! Received by Pauline Srifi ~");
if (!LoRa.begin(915E6)) { if (!LoRa.begin(864E6)) {
Serial.println("Starting LoRa failed!"); Serial.println("Starting LoRa failed!");
while (1); while (1);
} }

View File

@ -7,9 +7,9 @@ void setup() {
Serial.begin(9600); Serial.begin(9600);
while (!Serial); while (!Serial);
Serial.println("LoRa Sender"); Serial.println("Applejack is best pony ! Send by Pauline Srifi ~");
if (!LoRa.begin(915E6)) { if (!LoRa.begin(864E6)) {
Serial.println("Starting LoRa failed!"); Serial.println("Starting LoRa failed!");
while (1); while (1);
} }
@ -21,8 +21,9 @@ void loop() {
// send packet // send packet
LoRa.beginPacket(); LoRa.beginPacket();
LoRa.print("hello "); LoRa.print("Hey Applejack ! How many apple did you sold ?\n I sell ");
LoRa.print(counter); LoRa.print(counter);
LoRa.println("apples");
LoRa.endPacket(); LoRa.endPacket();
counter++; counter++;