Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

base/net/web-net-ajax.c

Committer:
andrewboyson
Date:
2021-01-21
Revision:
153:eaee18d970c4
Parent:
147:ea6f647725a1

File content as of revision 153:eaee18d970c4:


#include "http.h"
#include "mac.h"
#include "tcb.h"
#include "nr.h"
#include "nrtest.h"
#include "ar4.h"
#include "ar6.h"

void WebNetAjax()
{
    HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
    
    for (int b = 0; b < 6; b++) HttpAddByteAsHex(MacLocal[b]);
    HttpAddChar('\n');
    HttpAddText(NrTest);
    HttpAddChar('\n');
    HttpAddChar('\f');
    
    TcbSendAjax();
    HttpAddChar('\f');
    
    NrSendAjax();
    HttpAddChar('\f');
    
    Ar4SendAjax();
    HttpAddChar('\f');
    
    Ar6SendAjax();
}