Hi,
I am working on a university project using a LoRa module for sharing data through the Arduino IoT Cloud and the Thing Stack.
I am using an Arduino MKR WAN 1310 Arduino MKR WAN 1310 — Arduino Official Store with its Antenna.
For the last three weeks, I have not been able to connect the device to the cloud and therefore have not been able to share any captured data with it. The device is in a permanent connection loop, as shown in the screenshot below.
The program is not flashed via the Arduino IDE, but uploaded online (Arduino IOT Cloud) and flashed to the device. We use an OTAA connection mode (over-the-air activation) and the program listed below.
I have tried the following troubleshooting:
- Delete the associated device and reassociate it again
- Place the device in a different part of the city that is covered by the network to check the connection.
- Flashing a basic connection Program with the Arduino IDE
- Change Antenna
- Check with another Arduino MKR WAN 1310
Everything led to the same loop. Since it worked on the first attempts and the data was sent to the cloud, I suspect a problem related to the public gateway.
What else could it be? and how could I solve the problem?
Test Programm:
#include "thingProperties.h"
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 IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection, false);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
test = test+1;
delay(10000);
}
The Things Stack Console:
Tank you!