I’m having a hard time finding documentation or forum threads that discuss exactly how the Photon reacts to System.sleep(uint16_t wakeUpPin, uint16_t edgeTriggerMode). I’m running 0.4.6 firmware - just upgraded yesterday. Three questions:
Does this call put the system into deep sleep or light sleep - it’s not clear since the argument to choose is missing from this call, while present in others. I believe it’s a deep sleep - the doc seems to indicate that, but am not sure.
When this call is in effect, what is the effect of pulling the WKP pin HIGH on the Photon? Regardless of the state of the selected wakeUpPin, does WKP also wake the system up?
When the wakeUpPin is triggered - does the loop() continue with the next statement after the sleep call, or does it begin with the setup routine again? Again, the docs to not talk to this aspect of the sleep call, but the behavior I’ve observed is that the system wakes up and begin execution with the statement following sleep.
Thanks in advance,