# Putting an Electron to Sleep until a condition is met

**URL:** <https://community.particle.io/t/putting-an-electron-to-sleep-until-a-condition-is-met/38085>\
**Category:** Firmware\
**Created:** [December 12, 2017, 8:05pm UTC](https://community.particle.io/t/putting-an-electron-to-sleep-until-a-condition-is-met/38085 "2017-12-12T20:05:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![archr](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@archr](https://community.particle.io/u/archr)\
**Post date:** [December 12, 2017, 8:06pm UTC](https://community.particle.io/t/putting-an-electron-to-sleep-until-a-condition-is-met/38085/2 "2017-12-12T20:06:52Z")

</div>

Posts already referred:

> [@Waking up Electron from sleep using Pin and SMS](https://community.particle.io/t/waking-up-electron-from-sleep-using-pin-and-sms/32932):
>
> Hi, I have an electron that i need to wake up based on a pin interrupt e.g. D2 and also have the some option to wake up using SMS. I am trying to useSystem.sleep(wakeUpPin, edgeTriggerMode, SLEEP\_NETWORK\_STANDBY);But problem here is that i can only specify one pin either D2 or RI\_UC in this function. The idea is to have local and remote wake up option (via SMS). Separately they both work great. but how to specify two separate pins for the same wake up function. Any suggestions?

> [@System.sleep() and wake an Internet Button with one of the buttons](https://community.particle.io/t/system-sleep-and-wake-an-internet-button-with-one-of-the-buttons/19994/35):
>
> @ScruffR, Thanks !

> [@Scheduling a function on Photon](https://community.particle.io/t/scheduling-a-function-on-photon/18815):
>
> I am trying to schedule a function on the Photon to run once a day using the timer mentioned in the documentation. I am a novice coder, so I think I have missed something as the function is not triggered. My project is a Force Sensitive Resistor attached to A0 on the photon that provides a number between 0 and 40000ish. I want the particle.publish function to publish “Buy Milk” when it gets below 400 and I use IFTTT to send an SMS to my phone. I want that to happen once a day, and it doesn’t…

> [@Photon sleep mode wakeup on multiple interrupts?](https://community.particle.io/t/photon-sleep-mode-wakeup-on-multiple-interrupts/15368):
>
> I would like to put my photon in stop mode (to achieve low power and retain sram variables) but then wake up when one of my two defined interrupts occur. Is this possible?

---

_[View the full topic](https://community.particle.io/t/putting-an-electron-to-sleep-until-a-condition-is-met/38085)._
