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-net-ajax.c Source File

web-net-ajax.c

00001 
00002 #include "http.h"
00003 #include "mac.h"
00004 #include "tcb.h"
00005 #include "nr.h"
00006 #include "nrtest.h"
00007 #include "ar4.h"
00008 #include "ar6.h"
00009 
00010 void WebNetAjax()
00011 {
00012     HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
00013     
00014     for (int b = 0; b < 6; b++) HttpAddByteAsHex(MacLocal[b]);
00015     HttpAddChar('\n');
00016     HttpAddText(NrTest);
00017     HttpAddChar('\n');
00018     HttpAddChar('\f');
00019     
00020     TcbSendAjax();
00021     HttpAddChar('\f');
00022     
00023     NrSendAjax();
00024     HttpAddChar('\f');
00025     
00026     Ar4SendAjax();
00027     HttpAddChar('\f');
00028     
00029     Ar6SendAjax();
00030 }