Hello Rick. Thank you for posting this, it was quite helpful. But i need a little bit of help. None of these modes seems to suite my particular application:
I will be operating my photon in manual mode only.
I would like to put my photon into deep sleep mode for a specified amount of time and then it automatically wake up (without the need of a dedicated external input trigger signal to wake up).
Whilst in deep sleep mode i would like for it to still run the code associated with an interrupt i have programmed to trigger whenever a reed switch closes (which i am using to measure wind speed). Or even if it were to wake up to execute the code in the interrupt and than return to sleep mode that will be fine as well.
Once the time has elapsed i would like the photon to wake up from deep sleep and continue as normal, i.e not start from void setup again.
I did come across a few different sleep commands in the particle docs and the,
System.sleep(uint16_t wakeUpPin, uint16_t edgeTriggerMode, long seconds)
seems to be the next best for my purpose. However i am unclear if it will acknowledge the use of my interrupt and since i am not using an external trigger to wake the photon, if it will work. Please advise. Thanks in advance.