External Interrupt RISING and FALLING example
Posted: Mon Apr 06, 2015 10:50 pm
I can get everything compiled and uploaded fine onto the ESP-12. No problems as far as that goes. Example scripts I have tried work great. I am having problems with the following script and I have tried everything I know of to get it to work. When I power the esp it boots up, connects to wifi and shows correct IP. It then proceeds to run a randomly the HIGH or LOW detection until it gets to the end and then loops right back to the wificlient and says connecting again and just sits there. I only want the program to run and sit there until the pin goes HIGH (3.3V) or LOW (GRD) and runs whichever pertains to HIGh or LOW. I don't know why it is connecting and then nothing when it hasn't even detected a trigger. I even added more delays to see if it was just outrunning the server. Don't know what I am doing wrong and hopefully you can spot it. Also if you have any suggestions on how to make my sketch smaller and more efficient please let me know.
UPDATE: see post #5 for my working example.
UPDATE: see post #5 for my working example.