[SX126x] Fixed incorrect example (#50)
This commit is contained in:
parent
4fc2539a55
commit
5d4680709f
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,9 @@ void loop() {
|
|||
// reset flag
|
||||
receivedFlag = false;
|
||||
|
||||
// put module to standby while reading data
|
||||
lora.standby();
|
||||
|
||||
// you can read received data as an Arduino String
|
||||
String str;
|
||||
int state = lora.readData(str);
|
||||
|
@ -149,6 +152,9 @@ void loop() {
|
|||
|
||||
}
|
||||
|
||||
// put module back to listen mode
|
||||
lora.startReceive();
|
||||
|
||||
// we're ready to receive more packets,
|
||||
// enable interrupt service routine
|
||||
enableInterrupt = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue