writeControlAsync

Changes the ADS status and the device status of an ADS server.

 writeControl(
    adsState, 
    deviceState, 
    pData, 
    pCallback, 
    userState, 
  );

Parameters

adsState

Type: Number or TcAdsWebService.AdsState
New ads state.

deviceState

Type: Number or TcAdsWebService.AdsState
New device state.

pData

Type: Base64 encoded binary string
The binary data to write.

pCallback

Type: Function pointer
The callback function for asynchronous AJAX requests.
Function pointer signature: function( TcAdsWebService.Response, userState)

If successfull, the TcAdsWebService.Response.reader property will be undefined.

userState

Type: Every
User data which will be passed through.

Returns

This function will return nothing. An TcAdsWebService.Response object is returned by calling the callback function which was set by use of the pCallback parameter.