Cloud variable doesn't update value while LoRa gateway successfully receive packets

I tried the tutorial for Watchdog Timer (WDT) to practice establishing connection among MKRWAN1310, my gateway and the Arduino Cloud. During my last trail, I could see there were packets transmitted to the gateway every 3 min, but the cloud variable never updated, as shown in the pictures below.

my codes are as bellows, could anyone please help me with this problem? I would appreciate any advice from you.

#include "thingProperties.h"
  
unsigned long previousMillis = 0;
const long interval = 180000; //180 second interval (3 minutes) 
  //int test = 0;
void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 
  
  // Defined in thingProperties.h
  initProperties();
  
  // Connect to Arduino Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection, false);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and Arduino Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}
  
void loop()  {
  ArduinoCloud.update();
  
  unsigned long currentMillis = millis();
  
  if (currentMillis - previousMillis >= interval) {
  
    previousMillis = currentMillis;
  
    test +=1;
  
    }

did you follow exactly https://docs.arduino.cc/arduino-cloud/hardware/lora/ ?

During the variable creation in the Thing interface did you set and update rate ?
there is a Troubleshooting section, did you explore that ?

Hi Jackson, thanks for your reply. Yes, I've follow every single step in that tutorial. It seems that my end device can join the network and send uplinks to the gateway, and the gateway can receive the uplink and sent a downlink back. I could check all these above from the TTN console, and see the gateway's downlink message from the end device's serial monitor. However, there is no results updating in my Arduino Cloud dashboard.

This situation also happens on my other end devices, where end nodes seemed to transmit uplinks to gateway successfully based on the live data from TTN account, but no variable has been updated efficiently on Arduino Cloud, or only in a few cases I could see a cloud variable update its value.

By any chance do you have any idea on this? I would appreciate any suggestion from you to improve this problem.

I don’t use this so no specific idea on where to dig.

Have you tried simpler examples without the watchdog ? (Although the code above does not show any watchdog usage)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.