version 1.5
OP Remote Connection Status (phase; error; connectedTo; lastMessage) Longint
Parameter | Type | Description | |
phase | Longint | Status of remote connection | |
error | Longint | Error | |
connectedTo | String | Connected to | |
lastMessage | String | Last message | |
Function result | Longint | Error code result for the function |
Description
OP Remote Connection Status provides a means to check the status of a connection attempt that was initiated using OP Start Remote Connection. After a connection has been succesfully initiated, the phase parameter returns a value of one (1).
The possible values for the phase parameter are:
0: Connected
1: Connection in progress
2: Disconnected
Example
C_LONGINT(status1;$ErrCode;error) C_STRING(100;devType;devName) C_TEXT($errorText) $ErrCode:=OP Start Remote Connection("Home";"MyName";"MyPassword";True) Repeat $ErrCode:=OP Remote Connection Status(status1;error;devType;devName) Until(status#1) $errorText:=OP Get Error Text($ErrCode) . . . $errorText:=OP End Remote Connection()
See Also
OP End Remote Connection, OP Start Remote Connection.