From cdb9dc2121e17084be9688b8033ebf08b19f4334 Mon Sep 17 00:00:00 2001 From: OMGiTzPomPom Date: Thu, 8 Sep 2022 16:08:08 +0200 Subject: [PATCH] tp0 --- tp0/{ => LoRaReceiver}/LoRaReceiver.ino | 4 ++-- tp0/{ => LoRaSender}/LoRaSender.ino | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) rename tp0/{ => LoRaReceiver}/LoRaReceiver.ino (83%) rename tp0/{ => LoRaSender}/LoRaSender.ino (65%) diff --git a/tp0/LoRaReceiver.ino b/tp0/LoRaReceiver/LoRaReceiver.ino similarity index 83% rename from tp0/LoRaReceiver.ino rename to tp0/LoRaReceiver/LoRaReceiver.ino index ccbb453..618bf2f 100644 --- a/tp0/LoRaReceiver.ino +++ b/tp0/LoRaReceiver/LoRaReceiver.ino @@ -5,9 +5,9 @@ void setup() { Serial.begin(9600); 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!"); while (1); } diff --git a/tp0/LoRaSender.ino b/tp0/LoRaSender/LoRaSender.ino similarity index 65% rename from tp0/LoRaSender.ino rename to tp0/LoRaSender/LoRaSender.ino index a252ee5..66fd618 100644 --- a/tp0/LoRaSender.ino +++ b/tp0/LoRaSender/LoRaSender.ino @@ -7,9 +7,9 @@ void setup() { Serial.begin(9600); 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!"); while (1); } @@ -21,8 +21,9 @@ void loop() { // send packet LoRa.beginPacket(); - LoRa.print("hello "); + LoRa.print("Hey Applejack ! How many apple did you sold ?\n I sell "); LoRa.print(counter); + LoRa.println("apples"); LoRa.endPacket(); counter++;