Common stuff for all my devices' web server pages: css, login, log, ipv4, ipv6, firmware update, clock, reset info etc.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-net4-ajax.c Source File

web-net4-ajax.c

00001 #include   <stdio.h>
00002 
00003 #include "http.h"
00004 #include "ar4.h"
00005 #include "nr.h"
00006 #include "dhcp.h"
00007 
00008 void WebNet4Ajax()
00009 {
00010     HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
00011     
00012     HttpAddInt32AsHex(DhcpLocalIp);          HttpAddChar('\n');
00013     HttpAddText      (DhcpDomainName);       HttpAddChar('\n');
00014     HttpAddText      (DhcpHostName);         HttpAddChar('\n');
00015     HttpAddInt32AsHex(DhcpNtpIp);            HttpAddChar('\n');
00016     HttpAddInt32AsHex(DhcpDnsServerIp);      HttpAddChar('\n');
00017     HttpAddInt32AsHex(DhcpServerIp);         HttpAddChar('\n');
00018     HttpAddInt32AsHex(DhcpRouterIp);         HttpAddChar('\n');
00019     HttpAddInt32AsHex(DhcpSubnetMask);       HttpAddChar('\n');
00020     HttpAddInt32AsHex(DhcpBroadcastIp);      HttpAddChar('\n');
00021     HttpAddInt32AsHex(DhcpLeaseTime);        HttpAddChar('\n');
00022     HttpAddInt32AsHex(DhcpRenewalT1);        HttpAddChar('\n');
00023     HttpAddInt32AsHex(DhcpRenewalT2);        HttpAddChar('\n');
00024     HttpAddInt32AsHex(DhcpGetElapsedLife()); HttpAddChar('\n');
00025     HttpAddChar('\f');
00026     
00027     Ar4SendAjax();
00028 }