Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Tue Sep 24 18:16:47 2019 +0000
Revision:
130:9a5b8fe308f1
Parent:
110:8ab752842d25
Child:
142:b472ba95b018
Added http

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 86:f3c9beec4ee7 1 #include <stdio.h>
andrewboyson 86:f3c9beec4ee7 2
andrewboyson 86:f3c9beec4ee7 3 #include "http.h"
andrewboyson 86:f3c9beec4ee7 4 #include "ar4.h"
andrewboyson 86:f3c9beec4ee7 5 #include "nr4.h"
andrewboyson 89:615fb951df69 6 #include "dhcp.h"
andrewboyson 86:f3c9beec4ee7 7
andrewboyson 103:91194cc19bbb 8 void WebNet4Ajax()
andrewboyson 86:f3c9beec4ee7 9 {
andrewboyson 86:f3c9beec4ee7 10 HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 89:615fb951df69 11
andrewboyson 96:eb2eb75bad0f 12 HttpAddInt32AsHex(DhcpLocalIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 13 HttpAddText (DhcpDomainName); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 14 HttpAddText (DhcpHostName); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 15 HttpAddInt32AsHex(DhcpNtpIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 16 HttpAddInt32AsHex(DhcpDnsServerIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 17 HttpAddInt32AsHex(DhcpServerIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 18 HttpAddInt32AsHex(DhcpRouterIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 19 HttpAddInt32AsHex(DhcpSubnetMask); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 20 HttpAddInt32AsHex(DhcpBroadcastIp); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 21 HttpAddInt32AsHex(DhcpLeaseTime); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 22 HttpAddInt32AsHex(DhcpRenewalT1); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 23 HttpAddInt32AsHex(DhcpRenewalT2); HttpAddChar('\n');
andrewboyson 96:eb2eb75bad0f 24 HttpAddInt32AsHex(DhcpGetElapsedLife()); HttpAddChar('\n');
andrewboyson 89:615fb951df69 25 HttpAddChar('\f');
andrewboyson 89:615fb951df69 26
andrewboyson 88:2857259fc2b4 27 Ar4SendAjax();
andrewboyson 86:f3c9beec4ee7 28 HttpAddChar('\f');
andrewboyson 89:615fb951df69 29
andrewboyson 88:2857259fc2b4 30 Nr4SendAjax();
andrewboyson 86:f3c9beec4ee7 31 }