From 388a714e535d3da1848cf90017079ff86d817211 Mon Sep 17 00:00:00 2001 From: Nick McCloud <hiq.bitbucket@armoured.email> Date: Mon, 25 Mar 2024 14:21:14 +0000 Subject: [PATCH] Added uplink complete msg --- examples/LoRaWAN/LoRaWAN_Starter/LoRaWAN_Starter.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/LoRaWAN/LoRaWAN_Starter/LoRaWAN_Starter.ino b/examples/LoRaWAN/LoRaWAN_Starter/LoRaWAN_Starter.ino index 30d15c15..7b584dcc 100644 --- a/examples/LoRaWAN/LoRaWAN_Starter/LoRaWAN_Starter.ino +++ b/examples/LoRaWAN/LoRaWAN_Starter/LoRaWAN_Starter.ino @@ -58,7 +58,11 @@ void loop() { // Perform an uplink int state = node.sendReceive(uplinkPayload, sizeof(uplinkPayload)); 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 - delay(uplinkIntervalSeconds * 1000UL); + delay(uplinkIntervalSeconds * 1000UL); // delay needs milli-seconds }