[PSR] Downloading noncompiled file to board

Michal Sojka michal.sojka at cvut.cz
Mon Dec 31 09:09:24 CET 2018


On Sun, Dec 30 2018, Jiri Vlasak wrote:
> Hello Jan,
>
> On 12/30/18 5:31 PM, blahaj22 at fel.cvut.cz wrote:
>> 
>> Hello everyone,
>> 
>> working on the semestral project we encountered a simple problem. I hope 
>> it has as simple solution, unfortunately hidden from me.
>> We prepared the page for HTTP server as a html file, and on request we 
>> send it to client. The problem is that on running the WindRiver run 
>> configuration, only compiled object files are downloaded without errors. 
>> As a consequence my program has no access to the page file.
>> 
>> My question is: how to solve this problem? Is it somehow possible to 
>> download it to the board on "run", or it has to be done differently?
>
> To download it to board you need some program compiled on board that is 
> able to transfer files (scp, tftp, ...).

... and such a server does not run on our boards.

> However, the easiest way (in my opinion) is to put your HTML page as 
> macro to your code instead of separate file.

Or a variable:

    const char html[] = "<html>....."
                        "<body> ...."
                        "</body></html>";


The following converter can be useful:
http://tomeko.net/online_tools/cpp_text_escape.php

-MS



More information about the PSR mailing list