Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
web-derived/program/web-program-ajax.c
- Committer:
- andrewboyson
- Date:
- 2019-04-27
- Revision:
- 49:9491c966dc60
- Parent:
- http-derived/program/http-program-ajax.c@ 48:6eac12df3ad5
- Child:
- 52:76254a967391
File content as of revision 49:9491c966dc60:
#include <stdint.h> #include <stdio.h> #include "http.h" #include "web-base.h" #include "boiler.h" #include "radiator.h" #include "ds18b20.h" #include "program.h" #include "1-wire-device.h" void WebProgramAjax() { HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL); HttpAddNibbleAsHex(ProgramTimerOutput ); HttpAddChar('\n'); HttpAddByteAsHex (ProgramGetNewDayHour()); HttpAddChar('\n'); HttpAddNibbleAsHex(ProgramGetDay(1) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(2) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(3) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(4) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(5) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(6) ); HttpAddChar(','); HttpAddNibbleAsHex(ProgramGetDay(0) ); HttpAddChar('\n'); ProgramSendAjax(); }