Added uplink complete msg
This commit is contained in:
parent
14e1a9bd42
commit
388a714e53
1 changed files with 5 additions and 1 deletions
|
@ -59,6 +59,10 @@ void loop() {
|
||||||
int state = node.sendReceive(uplinkPayload, sizeof(uplinkPayload));
|
int state = node.sendReceive(uplinkPayload, sizeof(uplinkPayload));
|
||||||
debug((state != RADIOLIB_ERR_RX_TIMEOUT) && (state != RADIOLIB_ERR_NONE), F("Error in sendReceive"), state, false);
|
debug((state != RADIOLIB_ERR_RX_TIMEOUT) && (state != RADIOLIB_ERR_NONE), F("Error in sendReceive"), state, false);
|
||||||
|
|
||||||
|
Serial.print(F("Uplink complete, next in "));
|
||||||
|
Serial.print(uplinkIntervalSeconds);
|
||||||
|
Serial.println(F(" seconds"));
|
||||||
|
|
||||||
// Wait until next uplink - observing legal & TTN FUP constraints
|
// Wait until next uplink - observing legal & TTN FUP constraints
|
||||||
delay(uplinkIntervalSeconds * 1000UL);
|
delay(uplinkIntervalSeconds * 1000UL); // delay needs milli-seconds
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue