ITcAdsSync::Write

This method writes a value to a variable in an ADS device as byte stream

HRESULT Write(
indexGroup,
indexOffset,
cbLen,
pData);

Parameters

indexGroup

[in] A variable of the type long that holds the index group of the variable we want to write to.

indexOffset

[in] A variable of the type long that holds the index offset of the variable we want to write to.

cbLen

[in] Count of byte we want to write to the variable.

pData

[in, size_is(cbLen)] A pointer to the first element of a byte array with the length cbLen of the data we want to write to a variable in an Ads device.

Return Values

S_OK

The function was successfully called

ADSERRORCODES

An error occurs