adsSyncReadWriteReqEx2

Writes data synchronously into an ADS server and receives data back from the ADS device (thread-safe).

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

long adsSyncReadWriteReqEx2 (
  long           lj_portAmsAddrlj_AmsAddr,
  long           lj_indexGroup,
  long           lj_indexOffset,
  long           lj_lengthRead,
  JNIByteBuffer  lj_pDataRead,
  long           lj_lengthWrite,
  JNIByteBuffer  lj_pDataWrite,
  JNILong        lj_pBytesRead);

Parameter

Return value

long: returns the error state of the function.