MKRWAN1310 - main loop is blocked when no connection

Hi.

I have managed to connect my MKRWAN1310 to the arduino IoT cloud with the generated sketch. However I have 2 obervations regarding the connection (to give a background, I don't have my own gateway, I use a public gateway of TTN which is quite a bit away)

Main loop
When the connection is bad when the board is powered up, the connection is not established. Then I move the device outdoors, and the connection is still not established. In the TTN console I see an endles loop of forward join-accept / accept join-request
To get the connection be established, I have to power on the device at a place where the connection is good. Once connected, I can move it around and it will also re-connect after the connection is lost.

Question: Is there any known problem, e.g. that the HF module is not reset properly?

main loop does not get executed properly
In the main loop, I have implemented a blinking LED (without wait statements, just by comparing the Millies). I saw, as long as the LoRaWAN module is not connected, the LED does not blink properly - changes its state every 30 seconds.
The only way this can happen is, if the ArduinoCloud.update(); does some busy-waiting for ~30 seconds and does not exit.
Once the cloud connection is established, the LED blinks as expected.
Can this be? Because this means, the whole device is not functional and cannot do any other tasks as long as it is not connected to some gateway.

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