OpenSprinkler Forums Hardware Questions OpenSprinkler Bee (OSBee) The useage of html2raw.cpp to convert *.html files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46610

    komoya
    Participant

    Hello everyone

    we know that the *.html files are converted to html.h. If we change some *.htmls files, we need to convert the new files to html.h.
    How can we do it with html2raw.cpp?

    PS: With ‘MinGW’, i tryed to run html2raw.cpp, but get nothing.

    #46726

    Ray
    Keymaster

    html2raw is the source code for a program that converts HTML to raw string that you can embed in the firmware code. You can’t run it directly, you have to compile it:
    g++ -o html2raw html2raw.cpp
    (or use gcc -o html2raw html2raw.cpp)
    Then run ./html2raw

    #46804

    komoya
    Participant

    @Ray, thanks a lot. i follow your instruction, and done.

    But at the begin, i got some fault message with “ls”. then, i delete the whole line in the code” //sprintf(command, “ls *.html > %s”, LIST_FNAME);” and converte into .exe and run. now everything is ok.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Bee (OSBee) The useage of html2raw.cpp to convert *.html files