Guys, I'm going bananas here, don't know what to do, I'm still fighting with IoT Cloud and disconnecting units.
To take an example. I'm trying to use a MKR1010 with an Adafruit AHT20 sensor.
When I take the sample from the library in IoT Cloud and send it to the board, it works great, I get correct values through serial monitor. But at the moment I try to add the IoT Cloud parts to the code the unit start disconnecting and connecting to the USB on the computer.
I can only get the board back to life by uploading and empty sketch through Arduino IDE.
I tried from the other end and set up an "empty" thing first, so just add the IoT Cloud parts to the board and get it connected to the wifi. Works great, but the moment I add the sensor reading part, it goes to crazy mode again and start connecting and disconnecting erratically.
Any idea? All appriciated.