So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By stevereine
#63103 I have the Sparkfun ESP8266 Arduino shield running the basic WiFi code so that the ESP8266 sends HTML code back to a browser on a remote pc. My goal is to extend this HTML scrip to include a button, which when clicked runs some JavaScript code which in turn sends another request back to the ESP8266, which then parses this request to do what I want. This most basic implementation works fine, I can create a blank web page with a single button on it.

I'm having a peculiar problem. When the ESP8266 sends the HTML code back to the remote browser, it drops lines. If I right click in the browser and look at the source for the HTML, sometimes lines are missing. The trigger seems to be when my HTML code gets to a about 25 lines total, including HTML header and body.

I'm initializing the Arduino/ESP8266 via Putty. I've put some debugging into Putty so that when I open the web browser, it also spits the HTML code into the Putty terminal window. The text that I see in the terminal window is also missing the same lines that are missing in the HTML page. Therefore the problem exists even before the HTML code is broadcast to the remote browser, somehow the Arduino/ESP8266 is getting it wrong to begin with.

If I remove just a couple of lines of code, all works fine, all around. I just can't add enough code to reach my application goal without suffering from this error.

Any ideas?

thanks!

Steve