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@8:8ac076ce51af, 2022-11-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Nov 12 10:03:38 2022 +0000
- Revision:
- 8:8ac076ce51af
- Parent:
- 0:22b158d3c76f
Updated LPC1768 library
Who changed what in which revision?
User | Revision | Line number | New 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 |