- Fri Jun 26, 2015 12:21 pm
#21783
Thanks for your reply. I appreciate the help.
When a button on the Web page is pressed, GPIO 5 is held HIGH for 10 minutes, then it returns to LOW (I'm controlling a water pump).
Here's my code:
gpio.write(5, gpio.HIGH);
tmr.alarm(0, 600000, 1, function() tmr.stop(0); gpio.write(5, gpio.LOW); node.restart(); end)
This is the only timer I'm using. I am not using tmr.delay(). I'm happy to post all of the code if you think it would be helpful.
I added the node.restart() at the end to force a reset in an attempt to hide the disconnect problem. I do not believe that this has made any difference.
When I noticed the problem earlier today, I used Fing on my phone to map my network. The device was not being detected. But, after a couple of refreshes, it appeared. Either that's a really big coincidence or the network scan somehow brought the connection back online. I'm waiting for it to fail again so I can make another observation.
UPDATE: I just witnessed another failure. After three network scans using the Fing app the device reappeared on the network map and started working again.
2nd UPDATE: Same thing. I notice a failure and scan for a network map. After the third scan the device reappears and all is well. I've looked at other similar posts and I don't believe that this observation has been made by anyone before. Hopefully it will help point someone toward a solution.