Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
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-this/system/web-system-ajax.c@106:41ed3ea0bbba, 2021-04-23 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Apr 23 08:36:42 2021 +0000
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 53:c1bf7d9db507
Not working, crashes.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 47:229338b3adcb | 1 | #include <stdint.h> |
andrewboyson | 47:229338b3adcb | 2 | #include <stdio.h> |
andrewboyson | 47:229338b3adcb | 3 | |
andrewboyson | 47:229338b3adcb | 4 | #include "http.h" |
andrewboyson | 48:6eac12df3ad5 | 5 | #include "values.h" |
andrewboyson | 48:6eac12df3ad5 | 6 | #include "fram.h" |
andrewboyson | 47:229338b3adcb | 7 | |
andrewboyson | 49:9491c966dc60 | 8 | void WebSystemAjax() |
andrewboyson | 47:229338b3adcb | 9 | { |
andrewboyson | 47:229338b3adcb | 10 | HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 47:229338b3adcb | 11 | |
andrewboyson | 48:6eac12df3ad5 | 12 | HttpAddText (ValuesGetServerName() ); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 13 | HttpAddText (ValuesGetFileName() ); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 14 | HttpAddInt16AsHex(ValuesGetReadInterval()); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 15 | HttpAddInt16AsHex(ValuesGetWriteSize() ); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 16 | HttpAddInt16AsHex(ValuesGetCount() ); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 17 | HttpAddInt64AsHex(ValuesGetStartTime() ); HttpAddChar('\n'); |
andrewboyson | 48:6eac12df3ad5 | 18 | HttpAddInt16AsHex(FramUsed ); |
andrewboyson | 47:229338b3adcb | 19 | } |
andrewboyson | 47:229338b3adcb | 20 |