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 "boiler.h"
andrewboyson 0:22b158d3c76f 6 #include "radiator.h"
andrewboyson 0:22b158d3c76f 7 #include "ds18b20.h"
andrewboyson 0:22b158d3c76f 8 #include "program.h"
andrewboyson 0:22b158d3c76f 9 #include "1-wire-device.h"
andrewboyson 0:22b158d3c76f 10
andrewboyson 0:22b158d3c76f 11 void WebProgramAjax()
andrewboyson 0:22b158d3c76f 12 {
andrewboyson 0:22b158d3c76f 13 HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 0:22b158d3c76f 14
andrewboyson 0:22b158d3c76f 15 HttpAddNibbleAsHex(ProgramTimerOutput ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 16 HttpAddByteAsHex (ProgramGetNewDayHour()); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 17 HttpAddNibbleAsHex(ProgramGetDay(1) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 18 HttpAddNibbleAsHex(ProgramGetDay(2) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 19 HttpAddNibbleAsHex(ProgramGetDay(3) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 20 HttpAddNibbleAsHex(ProgramGetDay(4) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 21 HttpAddNibbleAsHex(ProgramGetDay(5) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 22 HttpAddNibbleAsHex(ProgramGetDay(6) ); HttpAddChar(',');
andrewboyson 0:22b158d3c76f 23 HttpAddNibbleAsHex(ProgramGetDay(0) ); HttpAddChar('\n');
andrewboyson 0:22b158d3c76f 24 ProgramSendAjax();
andrewboyson 0:22b158d3c76f 25
andrewboyson 0:22b158d3c76f 26 }