-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for list besides from string format of html file #41
Comments
You are on a very limited microcontroller right ? |
I am using ESP32 for this , if the file is too big , then I would suggest
I am not using readline because somehow , Python having problem with '\r' and '\n' , and also , I don't want to have problem with compressed file |
It's impossible with pyhtml ... (this is a templating language). |
I see , since the filename can be passed through , the function simply check if the file is html or pyhtml |
Hello,
I released a fully new version (v2.0) of my web server here :
github.com/jczic/MicroWebSrv2.
Open source MIT, fully asynchronous, more robust, more fast and more
efficient!
It is delivered with a good documentation.
Thank you for your support and feedback.
… Closed #41 <#41>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAegLBqzSMXcXv7814YiaqrXLkX7kMIaks5uRwWngaJpZM4WB0y3>
.
--
*Sincèrement,*
|
For many case , html file will be loaded from flash into a string and then will be pass to WriteResponseOK.
In my application , having upto 50K of heap , but it is fragmented , a html file size of 6KB is failed to loads due to MemoryError
To overcome this , I create a list , load the html in chunk of 100bytes , modified the _write() to accept the list , it write to socket pieces by pieces.
Since micropython doesnt handle heap fragmentation , I think my experiences with this issue will help .
The text was updated successfully, but these errors were encountered: