Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

web-this/system/web-system-ajax.c

Committer:
andrewboyson
Date:
2022-06-10
Revision:
10:a97a7cb7aa82
Parent:
0:b843d647695c

File content as of revision 10:a97a7cb7aa82:

#include  <stdint.h>
#include   <stdio.h>

#include "http.h"
#include "values.h"
#include "fram.h"

void WebSystemAjax()
{
    HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
    
    HttpAddText      (ValuesGetServerName()  ); HttpAddChar('\n');
    HttpAddText      (ValuesGetFileName()    ); HttpAddChar('\n');
    HttpAddInt16AsHex(ValuesGetReadInterval()); HttpAddChar('\n');
    HttpAddInt16AsHex(ValuesGetWriteSize()   ); HttpAddChar('\n');
    HttpAddInt16AsHex(ValuesGetCount()       ); HttpAddChar('\n');
    HttpAddInt64AsHex(ValuesGetStartTime()   ); HttpAddChar('\n');
    HttpAddInt16AsHex(FramUsed               );
}