Controls the central heating system and the lights.

Dependencies:   1-wire clock crypto fram log lpc1768 net web wiz mbed

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

Committer:
andrewboyson
Date:
2022-11-12
Revision:
8:8ac076ce51af
Parent:
0:22b158d3c76f

File content as of revision 8:8ac076ce51af:

#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               );
}