Controls the central heating system and the lights.

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

Committer:
andrewboyson
Date:
Mon May 10 10:23:48 2021 +0000
Revision:
0:22b158d3c76f
New version as old one would not commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:22b158d3c76f 1 #include <stdint.h>
andrewboyson 0:22b158d3c76f 2 #include <stdio.h>
andrewboyson 0:22b158d3c76f 3
andrewboyson 0:22b158d3c76f 4 #include "http.h"
andrewboyson 0:22b158d3c76f 5 #include "values.h"
andrewboyson 0:22b158d3c76f 6 #include "fram.h"
andrewboyson 0:22b158d3c76f 7
andrewboyson 0:22b158d3c76f 8 void WebSystemAjax()
andrewboyson 0:22b158d3c76f 9 {
andrewboyson 0:22b158d3c76f 10 HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 0:22b158d3c76f 11
andrewboyson 0:22b158d3c76f 12 HttpAddText (ValuesGetServerName() ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 13 HttpAddText (ValuesGetFileName() ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 14 HttpAddInt16AsHex(ValuesGetReadInterval()); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 15 HttpAddInt16AsHex(ValuesGetWriteSize() ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 16 HttpAddInt16AsHex(ValuesGetCount() ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 17 HttpAddInt64AsHex(ValuesGetStartTime() ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 18 HttpAddInt16AsHex(FramUsed );
andrewboyson 0:22b158d3c76f 19 }
andrewboyson 0:22b158d3c76f 20