What tools are used to convert HTML into C language arrays

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What tools are used to convert HTML into C language arrays

跳至解决方案
570 次查看
JohnDZhang
Contributor I

I used LPC54628, designed web server. I found SDK lwip_httpsrv. I can modify HTML file, but which tools can convert HTML to C language arrays? Many thanks!

0 项奖励
回复
1 解答
392 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

This is AE reply:
"

in SDK's "\middleware\lwip\src\apps\http\makefsdata" folder, there is makefsdata source code for convert HTML to C, customer need use Visual Studio to compile it to exe or other compiler tools for PC OS.

Visual Studio project under folder "middleware\lwip\contrib\ports\win32\msvc"

"

Hope it can help you

BR

XiangJun Rong

在原帖中查看解决方案

0 项奖励
回复
5 回复数
515 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For HTTP server, it uses CGI protocol.

Pls search the CGI protocol for the http server.

Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1708416482008.png

 

0 项奖励
回复
504 次查看
JohnDZhang
Contributor I

Many thanks for your reply! What I mean is how to convert HTML files into arrays in C language, not how to parse CGI.

For example, the auth.xml in my picture has been converted to "static const unsigned char httpsrv_fs_webpage_auth_html[]"

0 项奖励
回复
492 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

it appears that the https://realtimelogic.com is used.

Anyway I have asked the AE team, I will update after I get reply.

BR

XiangJun Rong

0 项奖励
回复
393 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

This is AE reply:
"

in SDK's "\middleware\lwip\src\apps\http\makefsdata" folder, there is makefsdata source code for convert HTML to C, customer need use Visual Studio to compile it to exe or other compiler tools for PC OS.

Visual Studio project under folder "middleware\lwip\contrib\ports\win32\msvc"

"

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复
488 次查看
JohnDZhang
Contributor I

Thank you very much!

0 项奖励
回复