I have a html page with two image files on (index.htm).
These two images are stored in the flash of the ESP.
I'm using the NodeMCU server functions to create a web server.
It all works without a problem, however, when I request index.htm, my browser immediately requests both images from the server (the ESP).
As far as I can tell, the conn:listen function isn't asynchronous and the ESP stops serving the current request and begins serving the new request. This results in two half delivered images (if I'm lucky!).
The 'listen' function trips up trying to serve, not only the HTML page but also both PNG files from flash and resets usually.
Please can someone confirm that there isn't a way to handle multiple html requests using NodeMCU???
Other than that, I guess I will have to control the flow of requests in my html code...? Any ideas?
Many thanks,
George