I use this example in Esp8266 micropython https://github.com/RinusW/WiPy/tree/master/AiCWebserver
The problem is that the server does not display the total file htm.
Screenshot:
https://dl.dropboxusercontent.com/u/170 ... ie_001.png
https://dl.dropboxusercontent.com/u/170 ... ie_002.png
Does not load the total file htm.
What am I doing wrong ?
Problem server does not load the total file htm.
Re: Problem server does not load the total file htm.
Try using conn.sendall in place of con.send...
Re: Problem server does not load the total file htm.
Thank you, it works. However, constantly pop up errors in the terminal and the server crashes.Probably the problem is resources esp8266
Re: Problem server does not load the total file htm.
Yes, you should send the file in smaller pieces, not all at once.
Re: Problem server does not load the total file htm.
Please can someone show an example of how to send html file in several parts. I'm a beginner.
Re: Problem server does not load the total file htm.
For me. the example works. I just changed the send() at sending the web page into sendall(), and replaced the tab's by spaces (the latter was not required). You do not have to split the send, since the data amount in minor.However, constantly pop up errors in the terminal and the server crashes.