Hi,
I've now managed to get my ESP8266 to act as a very simply web based control pannel to control a DC motor.
The DC motor is controlled in a Looper which reads a variable to decide what direciton to go or to stop.
I've got a physical switch, a small remote control fob and the web page to control it, any one of which can set the direciton variable or stop it.
The webside works fine when the looper is commented out, i.e. I can send HTLM to the user and collect responsoses from buttons.
However, when I enable the Looper, nothing works at the browns end, just get "unable to connection timed out"
Does the Loop work of interupts as I suspect that the Looper is interupting the astream.write and therefore incorrect HTML is being sent back to the browswer or something like that?
Anybody got any thoughts, can I stop the looper while I process the web request. I'll upload code if needed.
Thank you in advance
Dave