- Sun Jan 11, 2015 4:47 am
#6971
Alex_S wrote:CHERTS wrote:alonewolfx2 wrote:can we use make htmlflash in esphttp example?
File webpages.espfs (htmlflash) can only be done under linux, utility mkespfsimage for windows is working not correctly.
I tried to compile it in Visual Studio 2012 project is located in the directory C:\Espressif\examples\esphttpd\mkespfsimage_vs2012 or attachment, but the utility creates an invalid webpages.espfs
You can view the source code and may be able to find the error and correct it.
The resulting file is corrupted because stdout stream has TEXT mode. As result - it adds "\r\n" line endings instead of "\n".
The binary mode of stdout stream can be set by the "setmode" command:
_setmode( _fileno( stdout ), _O_BINARY );
If you will add this command to the main() function - the utility will provide correct file system image. So it is working for windows too!
Thanks!
Thank Alex_S, mkespfsimage.exe now works correctly.
In an attachment, a working project esphttpd, for the purpose of assembly, follow target all, flash and htmlflash. Configuring wi-fi in the file include\user_config.h
You do not have the required permissions to view the files attached to this post.