adsSyncReadReqEx2

Reads data synchronously from an ADS device (thread-safe).

The additional JNILong buffer contains the number of bytes read after the call.

long adsSyncReadReqEx2 (
  long           lj_portAmsAddrlj_AmsAddr,
  long           lj_indexGroup,
  long           lj_indexOffset,
  long           lj_length,
  JNIByteBuffer  lj_pData,
  JNILong        lj_pBytesRead
);

Parameter

Return value

long: returns the error state of the function.