Hi.
Can somebody tell me what exactly does below functions do in my WebSever sample .I'm using Ethercard.h from github.com.
1-BufferFiller bfill = ether.tcpOffset();
2-bfill.emit_p(PSTR(....
3-ether.httpServerReply(bfill.position());
Thanks.
//PartOfCode
BufferFiller bfill = ether.tcpOffset();
bfill.emit_p(PSTR("HTTP/1.0 200 OK\r\n"
"Content-Type: text/html\r\nPragma: no-cache\r\n\r\n"
"<html><head><title>WebLed</title></head>"
"<body>LED Status: $S "
"<a href=\"/?status=$S\"><input type=\"button\" value=\"$S\"></a>"
"</body></html>"
), statusLabel, buttonLabel, buttonLabel);
ether.httpServerReply(bfill.position());