Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7760d14

Browse files
Merge pull request #2196 from arduino/benjamindannegard/lora-tutorial-code-fix
[MKC-1795] Updated code on Lora MKR Wan 1310 LED Control Tutorial
2 parents fb0cf3c + b130452 commit 7760d14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎content/hardware/01.mkr/01.boards/mkr-wan-1310/tutorials/lora-button-press/lora-button-press.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ void loop() {
199199
while (LoRa.available()) {
200200
contents += (char)LoRa.read();
201201
}
202-
202+
203+
Serial.println(contents);
203204
// print RSSI of packet
204205
Serial.print("' with RSSI ");
205206
Serial.println(LoRa.packetRssi());
206-
Serial.println(contents);
207-
207+
208208
if(contents.equals(buttonPress)){
209209
x = !x;
210210
}
@@ -306,10 +306,10 @@ void loop() {
306306
contents += (char)LoRa.read();
307307
}
308308
309+
Serial.println(contents);
309310
// print RSSI of packet
310311
Serial.print("' with RSSI ");
311312
Serial.println(LoRa.packetRssi());
312-
Serial.println(contents);
313313
314314
if(contents.equals(buttonPress)){
315315
x = !x;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /