Hi to manage sleep or deep sleep i use arduinolopower library , you can add it into library management
basically you can call LowPower.deepSleep((uint32_t)(SLEEP_MILLIS)); for deep sleep or LowPower.sleep((uint32_t)(SLEEP_MILLIS)); for sleep
i used in my script to put in deep slepp mkrgsm1400 for 2 hours
forgot to say: have you shutdown the gsm class - gsm sms class (if used) - gprs class before placing in deep sleep the mcu ?
in my project i do these before deep sleep and it works..so i suspect with internet connection on with arduino cloud keeps mcu alive
Yep the problem is that using those libraries you don’t have access to the GSM class.
I’ve now setup a new sketch using GSM class and Blynk for the IOT and deep sleep works.
So the only solution is not using ArduinoIOTCloud...
If for the administrators of the forum and the management of Arduino this is an acceptable solution, please close the issue as Resolved.
Thanks