Skip to content

Commit

Permalink
Merge pull request #2196 from arduino/benjamindannegard/lora-tutorial…
Browse files Browse the repository at this point in the history
…-code-fix

[MKC-1795] Updated code on Lora MKR Wan 1310 LED Control Tutorial
  • Loading branch information
BenjaminDannegard authored Oct 2, 2024
2 parents fb0cf3c + b130452 commit 7760d14
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ void loop() {
while (LoRa.available()) {
contents += (char)LoRa.read();
}
Serial.println(contents);
// print RSSI of packet
Serial.print("' with RSSI ");
Serial.println(LoRa.packetRssi());
Serial.println(contents);
if(contents.equals(buttonPress)){
x = !x;
}
Expand Down Expand Up @@ -306,10 +306,10 @@ void loop() {
contents += (char)LoRa.read();
}
Serial.println(contents);
// print RSSI of packet
Serial.print("' with RSSI ");
Serial.println(LoRa.packetRssi());
Serial.println(contents);
if(contents.equals(buttonPress)){
x = !x;
Expand Down

0 comments on commit 7760d14

Please sign in to comment.