kopia lustrzana https://github.com/jgromes/RadioLib
[SX126x] Fixed incorrect example (#50)
rodzic
4fc2539a55
commit
5d4680709f
|
@ -110,6 +110,9 @@ void loop() {
|
||||||
// reset flag
|
// reset flag
|
||||||
receivedFlag = false;
|
receivedFlag = false;
|
||||||
|
|
||||||
|
// put module to standby while reading data
|
||||||
|
lora.standby();
|
||||||
|
|
||||||
// you can read received data as an Arduino String
|
// you can read received data as an Arduino String
|
||||||
String str;
|
String str;
|
||||||
int state = lora.readData(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,
|
// we're ready to receive more packets,
|
||||||
// enable interrupt service routine
|
// enable interrupt service routine
|
||||||
enableInterrupt = true;
|
enableInterrupt = true;
|
||||||
|
|
Ładowanie…
Reference in New Issue