Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: net 1-wire lpc1768 crypto clock web fram log
web-this/program/web-program-ajax.c@53:c1bf7d9db507, 2019-05-01 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed May 01 10:05:00 2019 +0000
- Revision:
- 53:c1bf7d9db507
- Parent:
- web-derived/program/web-program-ajax.c@52:76254a967391
Updated web library
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 | 47:229338b3adcb | 5 | #include "boiler.h" |
| andrewboyson | 47:229338b3adcb | 6 | #include "radiator.h" |
| andrewboyson | 47:229338b3adcb | 7 | #include "ds18b20.h" |
| andrewboyson | 47:229338b3adcb | 8 | #include "program.h" |
| andrewboyson | 47:229338b3adcb | 9 | #include "1-wire-device.h" |
| andrewboyson | 47:229338b3adcb | 10 | |
| andrewboyson | 49:9491c966dc60 | 11 | void WebProgramAjax() |
| andrewboyson | 47:229338b3adcb | 12 | { |
| andrewboyson | 47:229338b3adcb | 13 | HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL); |
| andrewboyson | 47:229338b3adcb | 14 | |
| andrewboyson | 48:6eac12df3ad5 | 15 | HttpAddNibbleAsHex(ProgramTimerOutput ); HttpAddChar('\n'); |
| andrewboyson | 48:6eac12df3ad5 | 16 | HttpAddByteAsHex (ProgramGetNewDayHour()); HttpAddChar('\n'); |
| andrewboyson | 48:6eac12df3ad5 | 17 | HttpAddNibbleAsHex(ProgramGetDay(1) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 18 | HttpAddNibbleAsHex(ProgramGetDay(2) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 19 | HttpAddNibbleAsHex(ProgramGetDay(3) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 20 | HttpAddNibbleAsHex(ProgramGetDay(4) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 21 | HttpAddNibbleAsHex(ProgramGetDay(5) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 22 | HttpAddNibbleAsHex(ProgramGetDay(6) ); HttpAddChar(','); |
| andrewboyson | 48:6eac12df3ad5 | 23 | HttpAddNibbleAsHex(ProgramGetDay(0) ); HttpAddChar('\n'); |
| andrewboyson | 48:6eac12df3ad5 | 24 | ProgramSendAjax(); |
| andrewboyson | 47:229338b3adcb | 25 | |
| andrewboyson | 47:229338b3adcb | 26 | } |