« Back to Product

Documentation

VIO_Disconnect

Require: IP-Symcon >= 5.1

 boolean VIO_Disconnect (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 = 2 (Disconnect), 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_Disconnect(12345, "192.168.0.8", 502);
Any questions?