Documentation
VIO_Connect
Require: IP-Symcon >= 5.1
boolean VIO_Connect (int $InstanceID, string $ClientIP, int $ClientPort)
Parameters
InstanceID | ID of the Virtual I/O to be updated |
ClientIP | The ClientIP to be connected |
ClientPort | The port to be connected |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Sends a data packet of the type Extended (Socket) to all instances connected to the Virtual I/O with the ID InstanceID. This includes: Type = 1 (Connect), Buffer = "" (Buffer empty), ClientIP = ClientIP and ClientPort = ClientPort.
Example
// Sends a data packet to the virtual I/O instance with the ID 12345 with the IP-address 192.168.0.8 and port 502
VIO_Connect(12345, "192.168.0.8", 502);