MKR1010 rebooting while using Cloud Iot

I have an Arduino MKR1010 with the MKR Iot Carrier.
I've wrote a sketch that works flawlessly with Arduino IDE (without using the cloud).
I've created a simple "thing" with no variable, just to put my sketch in here (copy past code from a sketch to another, without importing the file).
It verifies, it uploads and it starts. However, the arduino reboot after a few seconds (5-10 seconds).

Any Idea why? The code is the same (except the default Iot part)...
Thanks!

Hello @tag_1911

can you please share your sketch and the output of the serial monitor?

Finally, I've just took the time to rewrite the code and I've put the functions BEFORE the setup and main function and it's working great.
Don't know exactly the real problem... but it's working!
Thanks for wanting to help me!

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