Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By ChenBH
#57105 Hello,
I'm trying to make a little Smart home project.
The problem is I want to display a 7KB .html file written on SPIFFS (cntrlpnl.htm)and it takes 20sec to load the page.
I moved to using SD card for faster writing and debugging the onboard files.
My project is attached, it may be not so intuitive but I'm just prototyping for the time being.
Is there any way to hurry things up a bit?

Thanks,
Chen
You do not have the required permissions to view the files attached to this post.
Last edited by ChenBH on Wed Oct 26, 2016 10:09 am, edited 1 time in total.
User avatar
By martinayotte
#57116 You have maybe a problem elsewhere, because I'm able to push 100KB files into the browser in less than 5 secs.

How to read from SPIFFS and write to WebServer.client ?
(I hope you don't do that byte by byte ... :ugeek: )

EDIT : BTW, this could help viewtopic.php?p=57118#p57118
User avatar
By ChenBH
#57234 Great, this worked..
Could you explain to me the benefits of using the server.on() and server.send() over server.available() and client.write()/print()?
I'm using the second option for months now and it does the trick.