Andrew Boyson / oldheating

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-system-ajax.c Source File

web-system-ajax.c

00001 #include  <stdint.h>
00002 #include   <stdio.h>
00003 
00004 #include "http.h"
00005 #include "values.h"
00006 #include "fram.h"
00007 
00008 void WebSystemAjax()
00009 {
00010     HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
00011     
00012     HttpAddText      (ValuesGetServerName()  ); HttpAddChar('\n');
00013     HttpAddText      (ValuesGetFileName()    ); HttpAddChar('\n');
00014     HttpAddInt16AsHex(ValuesGetReadInterval()); HttpAddChar('\n');
00015     HttpAddInt16AsHex(ValuesGetWriteSize()   ); HttpAddChar('\n');
00016     HttpAddInt16AsHex(ValuesGetCount()       ); HttpAddChar('\n');
00017     HttpAddInt64AsHex(ValuesGetStartTime()   ); HttpAddChar('\n');
00018     HttpAddInt16AsHex(FramUsed               );
00019 }
00020