Client Class

Methods documented forClient inArduino

  1. WiFiClient()
  2. connected()
  3. connect()
  4. write()
  5. print()
  6. println()
  7. available()
  8. read()
  9. flush()
  10. stop()

Methods and properties described further down are specific to ESP8266. They are not covered inArduino WiFi library documentation. Before they are fully documented please refer to information below.

setNoDelay

setNoDelay(nodelay)

Withnodelay set totrue, this function will to disableNagle algorithm.

This algorithm is intended to reduce TCP/IP traffic of small packets sent over the network by combining a number of small outgoing messages, and sending them all at once. The downside of such approach is effectively delaying individual messages until a big enough packet is assembled.

Example:

client.setNoDelay(true);

Other Function Calls

uint8_tstatus()virtualsize_twrite(constuint8_t*buf,size_tsize)size_twrite_P(PGM_Pbuf,size_tsize)size_twrite(Stream&stream)size_twrite(Stream&stream,size_tunitSize)__attribute__((deprecated))virtualintread(uint8_t*buf,size_tsize)virtualintpeek()virtualsize_tpeekBytes(uint8_t*buffer,size_tlength)size_tpeekBytes(char*buffer,size_tlength)virtualoperatorbool()IPAddressremoteIP()uint16_tremotePort()IPAddresslocalIP()uint16_tlocalPort()boolgetNoDelay()

Documentation for the above functions is not yet prepared.

For code samples please refer to separate section withexamples:arrow_right: dedicated specifically to the Client Class.