[LoRaWAN] improve examples

This commit is contained in:
StevenCellist 2023-11-10 16:32:29 +01:00
parent 3df866e23d
commit 84bb8da036
2 changed files with 1 additions and 9 deletions

View file

@ -89,14 +89,6 @@ void setup() {
while(true);
}
if(state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!"));
} else {
Serial.print(F("failed, code "));
Serial.println(state);
while(true);
}
}
// counter to keep track of transmitted packets

View file

@ -152,7 +152,7 @@ void loop() {
String strUp = "Hello World! #" + String(fcntUp);
// send a confirmed uplink to port 10 every 64th frame
if(fcntUp / 64 == 0) {
if(fcntUp % 64 == 0) {
state = node.uplink(strUp, 10, true);
} else {
state = node.uplink(strUp, 10);