Description Writes data from a slave device in response to a request from a master, or queues bytes for transmission from a master to slave device (in-between calls to beginTransmission() and endTransmission()). Syntax Wire.write(value) Wire.write(string) Wire.write(data, length) Parameters value: a value to send as a single byte string: a string to send as a series […]
Description Ends a transmission to a slave device that was begun by beginTransmission() and transmits the bytes that were queued by write(). endTransmission() accepts a boolean argument (stop) changing its behavior for compatibility with certain I2C devices. If true, endTransmission() sends a stop message after transmission, releasing the I2C bus. If false, endTransmission() sends a […]
Description Begin a transmission to the I2C slave device with the given address. Subsequently, queue bytes for transmission with the write() function and transmit them by calling endTransmission(). Parameters address: the 7-bit address of the device to transmit to Returns None See also - Wire.write() - Wire.endTransmission() Libraries Reference Home The text of the 86Duino […]
Description Used by the master to request bytes from a slave device. The bytes may then be retrieved with the available() and read() functions. requestFrom() accepts a boolean argument (stop) changing its behavior for compatibility with certain I2C devices. If true, requestFrom() sends a stop message after the request, releasing the I2C bus. If false, […]
Description Initiate the Wire library and join the I2C bus as a master or slave. This should normally be called only once. Parameters address: the 7-bit slave address (optional); if not specified, join the bus as a master. Returns None Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino […]
Description Gets the port of the remote UDP connection. This function must be called after UDP.parsePacket(). Syntax UDP.remotePort(); Parameters None Returns The port of the host who sent the current incoming packet Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons […]
Description Gets the IP address of the remote connection. This function must be called after WiFiUDP.parsePacket(). Syntax WiFiUDP.remoteIP(); Parameters None Returns 4 bytes : the IP address of the host who sent the current incoming packet Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed […]
Description Disconnect from the server. Release any resource being used during the UDP session. Syntax WiFiUDP.stop() Parameters none Returns none Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the […]
Description Discard any bytes that have been written to the client but not yet read. flush() inherits from the Stream utility class. Syntax WiFiUDP.flush() Parameters none Returns none See also - Stream.flush() Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons […]
Description Reads UDP data from the specified buffer. If no arguments are given, it will return the next character in the buffer. This function can only be successfully called after WiFiUDP.parsePacket(). Syntax WiFiUDP.read(); WiFiUDP.read(buffer, len); Parameters buffer: buffer to hold incoming packets (char*) len: maximum size of the buffer (int) Returns -b: the characters in […]