Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Photon System.sleep(pin, edge, seconds) does not always stay asleep #846
It's very bizarre... at first I thought I was seeing things.. but it appears to come and go. I was using INPUT_PULLDOWN on D0, with RISING edge... and even with an additional 1k pulldown resistor it still misbehaves. Here's a test app that will connect, wait 5 seconds, publish a message, then sleep for 30 seconds and repeat. It does not always stay asleep for 30 seconds. I also tried jumpering VBAT to 3V3 which is important for some
Tested on latest develop:
If the app doesn't seem to be failing, try doubling the delays and use a clean build.