Sleep mode ,enable an output

Dear Forum,

Am I able to enable an output during sleep mode? Am I able to read cloud data during sleep mode?

If yes how?

Thank you in advance

There are different “sleep” modes, in one of which your code still runs to control the pins but cloud connection is not available in any of them.

OK , Thank you.

Also after the System.sleep(3);

It does not wake up to do the rest of the code. Is there something missing?

It wouldn’t do it after waking since the code never really gets stopped, this sleep miídr only switches the WiFi module off for n seconds, but carries on with the other (non-WiFi) code.

It’s hard to guess how your code should behave without seeing it.