[SX1231] Renamed basic examples to _Blocking

This commit is contained in:
jgromes 2023-06-24 22:18:59 +02:00
parent 3a07f0aa02
commit 2dafa83058
2 changed files with 31 additions and 19 deletions

View file

@ -1,5 +1,5 @@
/*
RadioLib SX1231 Receive Example
RadioLib SX1231 Blocking Receive Example
This example receives packets using SX1231 FSK radio module.
@ -7,6 +7,11 @@
interface. Please see RF69 examples for examples on AES,
address filtering, interrupts and settings.
Using blocking receive is not recommended, as it will lead
to significant amount of timeouts, inefficient use of processor
time and can some miss packets!
Instead, interrupt receive is recommended.
For default module settings, see the wiki page
https://github.com/jgromes/RadioLib/wiki/Default-configuration#rf69sx1231

View file

@ -1,5 +1,5 @@
/*
RadioLib SX1231 Transmit Example
RadioLib SX1231 Blocking Transmit Example
This example transmits packets using SX1231 FSK radio module.
@ -7,6 +7,10 @@
interface. Please see RF69 examples for examples on AES,
address filtering, interrupts and settings.
Using blocking transmit is not recommended, as it will lead
to inefficient use of processor time!
Instead, interrupt transmit is recommended.
For default module settings, see the wiki page
https://github.com/jgromes/RadioLib/wiki/Default-configuration#rf69sx1231
@ -42,11 +46,14 @@ void setup() {
}
}
// counter to keep track of transmitted packets
int count = 0;
void loop() {
Serial.print(F("[SX1231] Transmitting packet ... "));
// you can transmit C-string or Arduino string up to 256 characters long
int state = radio.transmit("Hello World!");
int state = radio.transmit("Hello World! #" + String(count++));
// you can also transmit byte array up to 256 bytes long
/*