# Controlling sleep mode through input

**URL:** <https://community.particle.io/t/controlling-sleep-mode-through-input/6111>\
**Category:** uncategorized\
**Created:** [July 31, 2014, 9:44pm UTC](https://community.particle.io/t/controlling-sleep-mode-through-input/6111 "2014-07-31T21:44:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [July 31, 2014, 11:07pm UTC](https://community.particle.io/t/controlling-sleep-mode-through-input/6111/2 "2014-07-31T23:07:41Z")

</div>

If you mean this:

> **[Can interrupts wake the core from deep sleep?](https://community.particle.io/t/can-interrupts-wake-the-core-from-deep-sleep/3007)**
>
> Simple question that fits into the topic title.

this:

> **[Spark.wake() during Spark.sleep()?](https://community.particle.io/t/spark-wake-during-spark-sleep/4753)**
>
> We have the ability to sleep the WiFi chip of the Spark Core (http://docs.spark.io/firmware/#sleep-spark-sleep) and deep sleep the entire core but only for a set number of seconds. Ideally we need a way to interrupt this sleep when certain events...

Or this:

> **[How to put spark core to sleep and wakeup on interrupt signal on a pin?](https://community.particle.io/t/how-to-put-spark-core-to-sleep-and-wakeup-on-interrupt-signal-on-a-pin/5947)**
>
> Hi, I am trying to safe battery power by putting the core to sleep and only wakeup when a pin is high. Is there a way to do that or an example project? Thanks,

Then no, that's not yet implemented. Since there are a lot of people eagerly waiting for it, including the famous "elites", I'm sure one of these days a notification will pop up somewhere telling us that it's finally here 😉

As far as this goes:

> [@jkkim93](#):
>
> but would like to get it off sleep state **or wifi** back on with a trigger

You can disable the WiFi using code, but still let the Core run. This way, power is reduced, but data can be transmitted if your code deems it nescesarry (it's nescesarry it you program it to be...). Then again, it seems as if you already knew that 😉

> **[Changing wifi state instead of sleep](https://community.particle.io/t/changing-wifi-state-instead-of-sleep/5208)**
>
> Hi all, Wondering if anyone’s had succes with turning wifi on /off? It’s not quite working out for me and I wanted to see if I could control the state of wifi rather than put the core to sleep or deep sleep (I don’t want to lose stored data). ...

Let's hope it's released rather sooner then later!

---

_[View the full topic](https://community.particle.io/t/controlling-sleep-mode-through-input/6111)._
