rchConfigSet (Function) |
Top Previous Next |
Sets the parameters for making connections to the RTCU Communication Hub. This has the same effect as setting the parameters via Device: Network: RTCU Communication Hub settings. The changes will take effect at the next call to gwOpen or at device reset. (e.g. by using boardReset).
Input: enable : BOOL (Default TRUE) TRUE to set the parameters, FALSE to clear the parameters.
address : STRING (Max 50 characters) The IP address or symbolic name of the server.
port : DINT (default 5001) The IP port the device should use to connect to the server.
iface : SINT (default 1) The network interface the device should use to connect to the server.
secure : BOOL (Default TRUE) Control if a standard connection or secure connection should be used to connect to the server.
port : DINT (default 5001) The IP port the device should use to connect to the server.
loginkey : STRING (Max 8 characters) The key (password) the device should use to connect to the server.
MaxConnectionAttempt : INT (1..60, default 3) Max number of connection attempts before the network media reconnects.
MaxSendReqAttempt : INT (1..60, default 5) Max number of send-request attempts before send fails.
ResponseTimeout : INT (5..60, default 45) Time waiting for response in seconds.
AliveFreq : DINT (0..60000, default 300) Frequency for sending self-transactions in seconds. The purpose of the self-transaction is to ensure a healthy two-way communication channel over the server. For applications that are only sending data from the device to the server, this frequency can safely be increased. Setting the value to zero will disable the self-transactions completely.
cryptkey : PTR The key used to encrypt communication with the server using a standard connection. If this parameter is not set (CryptKey set to 0), then the encryption key is not changed.
Returns:INT
Declaration: FUNCTION rchConfigSet : INT;
Example: INCLUDE rtcu.inc |