As the title says... Chat on...

User avatar
By mandroid
#50320 Hi all, I'm trying to have my nodemcu wait for analog input values inside a while loop and then break out of the loop and send an email when it detects an appropriate value. The sendemail script works fine on its own until I add this while loop. The problem is not with the while loop however, but when the script tries to send an email the nodemcu will reset after an indeterminate amount of time despite working fine before the while loop is added.

I've posted my script to stackoverflow so rather than remaking the question here I will simply link to my SO post. If this is unacceptable, please let me know and I will recreate the post here for users to view rather than just having the SO link.

http://stackoverflow.com/questions/3823 ... while-loop

Thank you for viewing and any help that may be provided.