Reference.WireRequestFrom History

Hide minor edits - Show changes to markup

April 02, 2013, at 06:53 AM by Scott Fitzgerald -
Changed lines 30-31 from:

int : the number of bytes returned from the slave device

to:

byte : the number of bytes returned from the slave device

April 01, 2013, at 05:46 PM by Scott Fitzgerald -
Changed lines 30-31 from:

None

to:

int : the number of bytes returned from the slave device

March 16, 2012, at 08:30 PM by Scott Fitzgerald -
Changed lines 11-12 from:

If false, requestFrom() sends a restart message after the request. The bus will not be released, which prevents another master device from requesting between messages.

to:

If false, requestFrom() sends a restart message after the request. The bus will not be released, which prevents another master device from requesting between messages. This allows one master device to send multiple requests while in control.

March 16, 2012, at 07:58 PM by Scott Fitzgerald -
Changed lines 26-27 from:

stop : boolean. true will send a STOP releasing the bus. false will continually send start requests, keeping the connection active.

to:

stop : boolean. true will send a stop message after the request, releasing the bus. false will continually send a restart after the request, keeping the connection active.

March 16, 2012, at 07:57 PM by Scott Fitzgerald - clarifying true/false
Changed lines 7-10 from:

As of Arduino 1.0.1, requestFrom() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If true, it will send a STOP message, releasing the I2C bus after the request. If false, the function will send a repeated start request so the next communication from the master device will happen automatically. When false, the bus will not be released between requests.

The default value is true, same as previous versions of the function.

to:

As of Arduino 1.0.1, requestFrom() accepts a boolean argument 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, requestFrom() sends a restart message after the request. The bus will not be released, which prevents another master device from requesting between messages.

The default value is true.

Changed lines 18-19 from:

Wire.requestFrom(address, quantity,stop)

to:

Wire.requestFrom(address, quantity, stop)

Changed line 35 from:
to:
March 15, 2012, at 02:15 AM by Scott Fitzgerald -
Changed lines 7-10 from:

As of Arduino 1.0.1, requestFrom() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If TRUE, it will send a STOP message, releasing the I2C bus after the request. If FALSE, the function will send a repeated start request so the next communication from the master device will happen automatically. When FALSE, the bus will not be released between requests.

The default value is TRUE, same as previous versions of the function.

to:

As of Arduino 1.0.1, requestFrom() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If true, it will send a STOP message, releasing the I2C bus after the request. If false, the function will send a repeated start request so the next communication from the master device will happen automatically. When false, the bus will not be released between requests.

The default value is true, same as previous versions of the function.

Changed lines 22-23 from:

stop : boolean. TRUE will send a STOP releasing the bus. FALSE will continually send start requests, keeping the connection active.

to:

stop : boolean. true will send a STOP releasing the bus. false will continually send start requests, keeping the connection active.

March 14, 2012, at 06:37 PM by Scott Fitzgerald -
Changed lines 7-8 from:

As of Arduino 1.0.1, requestFrm() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If TRUE, it will send a STOP message, releasing the I2C bus after the request. If FALSE, the function will send a repeated start request so the next communication from the master device will happen automatically. When FALSE, the bus will not be released between requests.

to:

As of Arduino 1.0.1, requestFrom() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If TRUE, it will send a STOP message, releasing the I2C bus after the request. If FALSE, the function will send a repeated start request so the next communication from the master device will happen automatically. When FALSE, the bus will not be released between requests.

March 14, 2012, at 06:36 PM by Scott Fitzgerald - added new parameter
Changed lines 1-2 from:

Wire.requestFrom(address, quantity)

to:

Wire.requestFrom()

Added lines 7-15:

As of Arduino 1.0.1, requestFrm() will accept a boolean argument changing its behavior for compatibility with certain I2C devices. If TRUE, it will send a STOP message, releasing the I2C bus after the request. If FALSE, the function will send a repeated start request so the next communication from the master device will happen automatically. When FALSE, the bus will not be released between requests.

The default value is TRUE, same as previous versions of the function.

Syntax

Wire.requestFrom(address, quantity)
Wire.requestFrom(address, quantity,stop)

Added lines 22-23:

stop : boolean. TRUE will send a STOP releasing the bus. FALSE will continually send start requests, keeping the connection active.

Deleted line 31:
December 06, 2011, at 06:51 AM by Scott Fitzgerald -
Changed lines 5-6 from:

Used by the master to request bytes from a slave device. The bytes may then be retrieved with the available() and receive() functions.

to:

Used by the master to request bytes from a slave device. The bytes may then be retrieved with the available() and read() functions.

Changed lines 20-21 from:
to:
March 29, 2011, at 09:13 PM by David A. Mellis -
Changed lines 5-6 from:

Request bytes from another device. The bytes may then be retrieved with the available() and receive() functions.

to:

Used by the master to request bytes from a slave device. The bytes may then be retrieved with the available() and receive() functions.

July 02, 2008, at 05:20 PM by David A. Mellis -
Added lines 1-21:

Wire.requestFrom(address, quantity)

Description

Request bytes from another device. The bytes may then be retrieved with the available() and receive() functions.

Parameters

address: the 7-bit address of the device to request bytes from

quantity: the number of bytes to request

Returns

None

See Also

Share