Skip to content

Commit 8461343

Browse files
committed
Fix Lora receiver code example
1 parent 8188ba3 commit 8461343

File tree

1 file changed

+5
-2
lines changed
  • content/hardware/09.kits/maker/nesso-n1/tutorials/user-manual

1 file changed

+5
-2
lines changed

content/hardware/09.kits/maker/nesso-n1/tutorials/user-manual/content.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,11 @@ void setup() {
457457
}
458458
459459
void loop() {
460-
// Check if a packet is available.
461-
int state = radio.readData(str);
460+
// Create a string to store the received message.
461+
String str;
462+
463+
// Try to receive a packet.
464+
int state = radio.receive(str);
462465
463466
if (state == RADIOLIB_ERR_NONE) {
464467
// Packet was received successfully.

0 commit comments

Comments
 (0)