Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Thu Jan 21 13:33:44 2021 +0000
Revision:
153:eaee18d970c4
Parent:
147:ea6f647725a1
Added button to test resolution of a name from an address.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 132:5b2df69a4f17 1
andrewboyson 132:5b2df69a4f17 2 #include "http.h"
andrewboyson 132:5b2df69a4f17 3 #include "mac.h"
andrewboyson 132:5b2df69a4f17 4 #include "tcb.h"
andrewboyson 153:eaee18d970c4 5 #include "nr.h"
andrewboyson 153:eaee18d970c4 6 #include "nrtest.h"
andrewboyson 146:6bc151bd7063 7 #include "ar4.h"
andrewboyson 146:6bc151bd7063 8 #include "ar6.h"
andrewboyson 132:5b2df69a4f17 9
andrewboyson 132:5b2df69a4f17 10 void WebNetAjax()
andrewboyson 132:5b2df69a4f17 11 {
andrewboyson 132:5b2df69a4f17 12 HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 132:5b2df69a4f17 13
andrewboyson 132:5b2df69a4f17 14 for (int b = 0; b < 6; b++) HttpAddByteAsHex(MacLocal[b]);
andrewboyson 132:5b2df69a4f17 15 HttpAddChar('\n');
andrewboyson 147:ea6f647725a1 16 HttpAddText(NrTest);
andrewboyson 147:ea6f647725a1 17 HttpAddChar('\n');
andrewboyson 132:5b2df69a4f17 18 HttpAddChar('\f');
andrewboyson 132:5b2df69a4f17 19
andrewboyson 132:5b2df69a4f17 20 TcbSendAjax();
andrewboyson 143:cc2e148cb96a 21 HttpAddChar('\f');
andrewboyson 143:cc2e148cb96a 22
andrewboyson 143:cc2e148cb96a 23 NrSendAjax();
andrewboyson 146:6bc151bd7063 24 HttpAddChar('\f');
andrewboyson 146:6bc151bd7063 25
andrewboyson 146:6bc151bd7063 26 Ar4SendAjax();
andrewboyson 146:6bc151bd7063 27 HttpAddChar('\f');
andrewboyson 146:6bc151bd7063 28
andrewboyson 146:6bc151bd7063 29 Ar6SendAjax();
andrewboyson 132:5b2df69a4f17 30 }