Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
Diff: web-this/system/web-system-ajax.c
- Revision:
- 0:22b158d3c76f
diff -r 000000000000 -r 22b158d3c76f web-this/system/web-system-ajax.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-this/system/web-system-ajax.c Mon May 10 10:23:48 2021 +0000 @@ -0,0 +1,20 @@ +#include <stdint.h> +#include <stdio.h> + +#include "http.h" +#include "values.h" +#include "fram.h" + +void WebSystemAjax() +{ + HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL); + + HttpAddText (ValuesGetServerName() ); HttpAddChar('\n'); + HttpAddText (ValuesGetFileName() ); HttpAddChar('\n'); + HttpAddInt16AsHex(ValuesGetReadInterval()); HttpAddChar('\n'); + HttpAddInt16AsHex(ValuesGetWriteSize() ); HttpAddChar('\n'); + HttpAddInt16AsHex(ValuesGetCount() ); HttpAddChar('\n'); + HttpAddInt64AsHex(ValuesGetStartTime() ); HttpAddChar('\n'); + HttpAddInt16AsHex(FramUsed ); +} +