# No reconnection to the cloud after sleep

**URL:** <https://community.particle.io/t/no-reconnection-to-the-cloud-after-sleep/7008>\
**Category:** Troubleshooting\
**Created:** [September 18, 2014, 4:59pm UTC](https://community.particle.io/t/no-reconnection-to-the-cloud-after-sleep/7008 "2014-09-18T16:59:20Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![psb777](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/psb777/32/934_2.png) [@psb777](https://community.particle.io/u/psb777)\
**Post date:** [December 19, 2014, 3:01pm UTC](https://community.particle.io/t/no-reconnection-to-the-cloud-after-sleep/7008/32 "2014-12-19T15:01:14Z")

</div>

One of the attractions of programming is that it’s _not_ like baking a souffle - sometimes it rises and sometimes it flops and you don’t know why. I cannot believe that programming the Spark Core should be as flaky as you experience. Oh, and you’re not alone, of course. But I am not having to program in quite the round-the-houses style you seem to need to.

So, as a first step, how is it supposed to work? That’s when I refer to the documentation. Others, of course, refer to the underlying code.

How about, instead of the definitive docs, some sample programs written by those in the know, that do simple stuff tasks which just _work_ and which, should they not work, would demonstrate a bug? E.g. (a) how is one supposed to bring up the Cloud in MANUAL mode? (b) How is one supposed to turn off the WiFi? © And resurrect it? More generally (d) Is one supposed to wait a while or test after these calls, or do the provided calls do what they say they do, blocking until the task is complete?

I am hoping the answers are (a) Spark.connect(), (b) WiFi.off() and © Wifi.connect(). And (d) something definitive.

---

_[View the full topic](https://community.particle.io/t/no-reconnection-to-the-cloud-after-sleep/7008)._
