esi-buffer

The esi-buffer library provides wrapper functions around the realtime buffer functionality

Changes

Version | Date | Description | s:i Release |
0.1.0 | 2019-03-27 | Initial release | - |

Dependencies

library version inmation core library

Available functions

All functions have to be called according to the ESI standard, using colons, e.g. STR:COMPNOCASE("a","A")

Documentation

CreateSimpleBuffer(objectPath, bufferName, duration, size, createNew)

Creates a realtime-buffer with the name bufferName, which buffers the input .ItemValue of the object specified with objectPath. The buffer has the duration and size parameters (see the wiki).

If the buffer already exists, it is not recreated - unless createNew is true.

CreateFunctionBuffer(objectPath, bufferName, inputName, duration, size, createNew, functionN)

Creates a realtime-buffer with the name bufferName, which buffers the input inputName of the object specified with objectPath. This can be the item value, or another buffer. The buffer has the duration and size parameters, and the next value in the buffer will be created by the return of functionN (provided as string). More details, see the wiki).

If the buffer already exists, it is not recreated - unless createNew is true.