« Back to Product

Documentation

VIO_PushPacket

Require: IP-Symcon >= 5.1

 boolean VIO_PushPacket (int $InstanceID, string $Text, string $ClientIP, int $ClientPort) 

Parameters

InstanceID

ID of the virtual I/O to be updated

Text

The string to be sent

ClientIP

On the ClientIP to be sent

ClientPort

On the port to be sent

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 = 0 (Data), Buffer = Text, ClientIP = ClientIP and ClientPort = ClientPort.

Example

// Sends the text "Hello World" to the virtual I/O instance with the ID 12345, and with the IP address 192.168.0.8 and port 502
VIO_PushPacket(12345, "Hello World", "192.168.0.8", 502);
Any questions?