Does anyone have a simple web server example that uses EthernetServer server(80). Just can’t get it to compile on my WifiKit32 setup. Thanks.
PS: I have code that works with Teensy EthernetServer and handles this sort of web site and response:
;
sprintf(szText, “<FORM ACTION=“http://%u.%u.%u.%u:80” method=get >”, local_ip[0], local_ip[1], local_ip[2], local_ip[3]);
ptr += szText;
sprintf(szText, " IP: <INPUT TYPE=TEXT NAME=\"IP\" VALUE=\"%u.%u.%u.%u\" SIZE=\"15\" MAXLENGTH=\"15\"> ",
remote_ip[0], remote_ip[1], remote_ip[2], remote_ip[3]);
ptr += szText;
sprintf(szText, "PORT: <INPUT TYPE=TEXT NAME=\"PORT\" VALUE=\"%d\" SIZE=\"5\" MAXLENGTH=\"5\">", net_ipdata.remote_port);
ptr += szText;
sprintf(szText, "<INPUT TYPE=SUBMIT NAME=\"submit\" VALUE=\"Set Device\"><BR>");
ptr += szText;
ptr += "</FORM><BR>";