The device connects to IOT cloud fine and transmits the data for days and sometimes even weeks, but then it will stop transmitting for apparently no reason. On the IOT cloud dashboard the device is still listed as online, but no new data comes in. The Arduino IOT cloud library uses MQTT to communicate.
The data is set to transmit every 30 min.
It should be noted that the device is being powered with a usb cable connected to a generator. I have heard the MKR GSM not working correctly when not connected to a battery, but previously I have had it work fine connected to a wall plug via usb.
It is also in an area that is currently exceeding 40 degrees Celcius.
Any ideas?