adsSyncReadWriteReqEx

Writes data synchronously into an ADS server and receives data back from the ADS device (extended functionalities).

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

long adsSyncReadWriteReqEx(
  AmsAddr        lj_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.