Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By KurtB
#14486 Hi,
in the attached sketch a WebServer is provided where clients can connect to and setup commands.
So far so good.
At every 300 ms status of buttons should be checked doing by a timer interrupt routine (named checkKeys).
Key changes have to be reported to a different WebServer addressed with IP and Port=8080.

At the function "send_button" a reset is fired at the point where the connection to the webServer should be done.

What do I wrong here? Any help is highly welcome.
KurtB
You do not have the required permissions to view the files attached to this post.
User avatar
By KurtB
#14506 Hi,
found a solution by copy the code of function "send_button" to the beginning of void loop () and control by a flag if this code should be run or not. Means in the send_button function the flag and the last button state is set. Thats all.

I'm now happy with my sketch, but still confusing why the reset was fired. If someone has an idea, its fine otherwise I will keep my current solution.
KurtB