Sleep with timeout only

I have read through all the documentation regarding system.sleep() and in each instance it mentions using a pin and pin mode in combination with the timeout. Much like

System.sleep(D3, RISING, 30, SLEEP_NETWORK_STANDBY);

I wanted to know if its required to specify the pin and pinmode or if the timeout and sleep mode can be specified alone?

System.sleep(, , 30, SLEEP_NETWORK_STANDBY);

or

System.sleep(30, SLEEP_NETWORK_STANDBY);

Thank you

You can leave the Pin & Mode blank if you want :

int sleepTime =  60 ;
System.sleep( {}, {}, (sleepTime) ) ;
2 Likes

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