This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MCB167-NET

Hi,

I'm working with the MCB167-NET application board and the aplication note APNT-164. My problem is this:
I would like, that the dinamic values of this examples, that comes from the A/D converter of the micro, will be able to be saved in a file, for example an excel or word file.
The reason of this is that I want to create a data base that contains all of the data that the web serves.

I don't know if a Html code can do it,but I would like to do it with a C function.

Note: This values must be saved automatically without any user must to press any button.

Can somebody help me?

Thanks .


Sergio.

  • I would change the HTTPServer() to send a HTTP header like this(instead of the html-file):

    Content-type: application/vnd.ms-excel
    Content-Disposition:attachment
    filename=DataExport.csv
    Expires: 0
    Cache-Control: must-revalidate, post-check=0,pre-check=0
    Pragma: public

    This would force the calling browser to prepare for an incoming file.
    Now you can send the values and seperate them by ';'.
    Now you should get an CSV file which can be viewed with excel.