AdsConnection
The TcAdsWebService.AdsConnection object handles the asynchronous or synchronous AJAX communication with the TcAdsWebService by wrapping the TcAdsWebService.Client object.
TcAdsWebService.AdsConnection(
netid,
port,
service_url [optional],
service_user [optional],
service_password [optional]
);
Parameters
netid | Type: String |
port | Type: Number |
service_url [optional] | Type: String |
service_user [optional] | Type: String |
service_password [optional] | Type: String |
Functions
Name | Description |
---|---|
Writes data to an ADS device and then reads data from this device in a synchronous way. | |
Writes data to an ADS device and then reads data from this device in an asynchronous way. | |
Reads the ADS status and the device status from an ADS server in a synchronous way. | |
Reads the ADS status and the device status from an ADS server in an asynchronous way. | |
Changes the ADS status and the device status of an ADS server in a synchronous way. | |
Changes the ADS status and the device status of an ADS server in an asynchronous way. | |
Writes data to an ADS device in a synchronous way. | |
Writes data to an ADS device in an asynchronous way. | |
Reads data from an ADS device in a synchronous way. | |
Reads data from an ADS device in an asynchronous way. | |
Returns an object identifier string |
Properties
Name | Description |
---|---|
service_url | The url of the TcAdsWebService. |
service_user | The username which should be used to access the TcAdsWebService. |
service_password | The password which should be used to access the TcAdsWebService. |
timeout | The timeout for ajax request against the TcAdsWebService. |
timeoutCallback | A pointer to a javascript function which is called on a timeout of an ajax request. |
client | The underlying TcAdsWebService.Client object. |
netid | The NetID of the target AMS Router. |
port | The port of the target AMS Router. |