How to generate .bin from web files (Web server application)

Alexis Galindo Flores 6 Reputation points
2022-04-06T09:01:42.617+00:00

Hi everybody,

I am working with AZURE RTOS and I have implemented an HTTP web server application. I started from the example available in CubeIDE. Everything is working properly but now I need to modifiy the HTTP web page. For this, it is necessary to generate a .bin file from the .js, .css and .html files:

190476-image.png

Could somebody help me with this issue? I think it should exists a script or something like that for it.

Thanks in advance.

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tiejun Zhou 1,126 Reputation points Microsoft Employee
    2022-04-07T07:17:15.333+00:00

    If I understand correctly, you are trying to put some files on web server so you don't need to generate the web page dynamically. Here is a sample. To use files from file system (flash memory in your case), you will need to open a FileX media and pass it to nx_web_http_server_create. In callback function, if you want the file system to handle the requested URI, simply return NX_SUCCESS as shown here.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.