diff --git a/lora vers arduino/LoRaReceiver/LoRaReceiver.ino b/lora vers arduino/LoRaReceiver/LoRaReceiver.ino index a9a6371..f1e80e1 100644 --- a/lora vers arduino/LoRaReceiver/LoRaReceiver.ino +++ b/lora vers arduino/LoRaReceiver/LoRaReceiver.ino @@ -7,7 +7,7 @@ void setup() { Serial.println("LoRa Receiver"); - if (!LoRa.begin(915E6)) { + if (!LoRa.begin(868E6)) { Serial.println("Starting LoRa failed!"); while (1); } @@ -17,9 +17,6 @@ void loop() { // try to parse packet int packetSize = LoRa.parsePacket(); if (packetSize) { - // received a packet - //Serial.print("Received packet '"); - // read packet while (LoRa.available()) { Serial.print((char)LoRa.read()); diff --git a/lora vers arduino/LoRaSender/LoRaSender.ino b/lora vers arduino/LoRaSender/LoRaSender.ino index e29eb11..05a1e6e 100644 --- a/lora vers arduino/LoRaSender/LoRaSender.ino +++ b/lora vers arduino/LoRaSender/LoRaSender.ino @@ -10,7 +10,7 @@ void setup() { Serial.println("LoRa Sender"); - if (!LoRa.begin(915E6)) { + if (!LoRa.begin(868E6)) { Serial.println("Starting LoRa failed!"); while (1); } @@ -29,5 +29,5 @@ void loop() { counter++; - delay(1000); + delay(5000); }