Articles Posted by the Author:

  • stop()

    stop()

    Description Disconnects from the server Syntax client.stop() Parameters none Returns none Example See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - flush() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]


  • flush()

    flush()

    Description Discards any bytes that have been written to the client but not yet read. flush() inherits from the Stream utility class. Syntax client.flush() Parameters none Returns none See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - stop() Libraries Reference Home […]


  • peek()

    peek()

    Description Returns the next byte (character) of an incoming message removing it from the message. That is, successive calls to peek() will return the same character, as will the next call to read(). peek() inherits from the Stream utility class. Syntax client.peek() Parameters none Returns int – the next byte in an incoming message. See […]


  • available()

    available()

    Description Returns the number of bytes available for reading (that is, the amount of data that has been written to the client by the server it is connected to). available() inherits from the Stream utility class. Syntax client.available() Parameters none Returns The number of bytes available. Example See also - GSMClient - ready() - connect() […]


  • read()

    read()

    Description Read the next byte received from the server the client is connected to (after the last call to read()). read() inherits from the Stream utility class. Syntax client.read() Parameters none Returns int – The next byte (or character), or -1 if none is available. Example See also - GSMClient - ready() - connect() - […]


  • connected()

    connected()

    Description Returns whether or not the client is connected. A client is considered connected if the connection has been closed but there is still unread data. Syntax client.connected() Parameters none Returns boolean – Returns true if the client is connected, false if not. Example See also - GSMClient - ready() - connect() - beginWrite() - […]


  • endWrite()

    endWrite()

    Description Stops writing data to a server Syntax client.endWrite() Parameters none Returns none See also - GSMClient - ready() - connect() - beginWrite() - write() - connected() - read() - available() - peek() - flush() - stop() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is […]


  • write()

    write()

    Description Write data to the server the client is connected to. Syntax client.write(data) client.write(buffer) client.write(buffer, size) Parameters data: the value to write (byte or char) buffer: an array of data (byte or char) to write size: size of the buffer to write (byte) Returns byte – write() returns the number of bytes written. It is […]


  • beginWrite()

    beginWrite()

    Description Tells the client to start writing to the server it is connected to. Syntax client.beginWrite() Parameters none Returns none See also - GSMClient - ready() - connect() - write() - endWrite() - connected() - read() - available() - peek() - flush() - stop() Libraries Reference Home The text of the 86Duino reference is a […]


  • connect()

    connect()

    Description Connects to a specified IP address and port. The return value indicates success or failure. Syntax client.connect(ip, port) Parameters ip: the IP address that the client will connect to (array of 4 bytes) port: the port that the client will connect to (int) Returns boolean : Returns true if the connection succeeds, false if […]