« Back to Product

Documentation

VIO_PushPacketHEX

Require: IP-Symcon >= 5.1

 boolean VIO_PushPacketHEX (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 in HEX

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.

Warning

The Text parameter is case-insensitive and spaces are ignored. Furthermore, only the characters 0..9, Aa..Ff are allowed.

Example

// Sends the hex string "1a2fee" with the IP address 192.168.0.8 and port 502 to the virtual I/O instance with the ID 12345
VIO_PushPacketHEX(12345, "1A 2F EE", "192.168.0.8", 502);
Any questions?