« Back to Product

Documentation

SetBuffer

Require: IP-Symcon >= 4.1

 void SetBuffer (string $Name, string $Data) 

Parameters

Name

Name of the buffer

Data

Data which should be packed into the buffer.

Returns

No Return

Description

This function writes data Data into the buffer with the name Name.

Warning

The buffer has a soft limit of 256kB and a hard limit of 1024kB. Therefore, from a size of 256kB, IP-Symcon dumps a "Warning" in the messages and the maximum buffer size is 1024kB. Data larger than 1024kB will be cut off.

Warning

The content of the buffer is only available as long as IP-Symcon is running. After a restart all information disappears.

Example

// Writes "Hello World" to the "Databuffer" buffer
$this->SetBuffer("DataBuffer", "Hello World");
Any questions?