Sending Data to an EthernetClient.
i looking @ code create server response client http request.
my question is: @ point data sent server client.? on "client.stop();" command?
thanks time,
harold clements
my question is: @ point data sent server client.? on "client.stop();" command?
code: [select]
client.println("http/1.1 200 ok");
client.println("content-type: text/html");
client.println("connection: close"); // connection closed after completion of response
client.println("refresh: 5"); // refresh page automatically every 5 sec
client.println();
client.println("<!doctype html>");
client.println("<html>");
client.println("hello world!");
client.println("</html>");
client.stop();
thanks time,
harold clements
it's not documented, think in practice each call print(), println(), write() results in separate packet being sent, response transmitted incrementally output it.
Arduino Forum > Using Arduino > Programming Questions > Sending Data to an EthernetClient.
arduino
Comments
Post a Comment