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?

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

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support