Jaa


I2cDevice.Read(Byte[]) Method

Definition

Reads data from the inter-integrated circuit (I2 C) bus on which the device is connected into the specified buffer.

public:
 virtual void Read(Platform::Array <byte> ^ buffer) = Read;
void Read(winrt::array_view <byte> & buffer);
public void Read(byte[] buffer);
function read(buffer)
Public Sub Read (buffer As Byte())

Parameters

buffer

Byte[]

byte[]

The buffer to which you want to read the data from the I2 C bus. The length of the buffer determines how much data to request from the device.

Windows requirements

App capabilities
lowLevel

Remarks

Error Codes

0x80070002

The bus address was not acknowledged.

0x8007045D

The I2 C device negatively acknowledged the data transfer before the entire buffer was read.

Applies to

See also