Readonly
EventsThe events available for the Invent connection.
Register for variable update events. The callback will be called when a variable is updated.
The update callback gets triggered when a variable is updated. The callback will receive the variable name and the new value.
The register success callback gets triggered when the registration was successful. The callback will receive a boolean indicating if the registration was successful.
Register a value replacer. This will be called when a variable is used and allows a script to replace the value of the variable.
The replace function will be called when a variable is used. The function will receive the variable name and the current value. The function should return the new value for the variable or null if the variable should not be replaced.
The register success callback gets triggered when the registration was successful. The callback will receive a boolean indicating if the registration was successful.
Readonly
VariablesAccess to variables in Invent.
Get the variable value
The variable name to retrieve the value from.
The callback is triggered when the value is available. The callback will receive the value as parameter. Or null if the variable does not exist.
Retrieve the invent connector. This gives access to all features of the Invent integration. This will search for the connector and return it when it is available. If the connector is not available, the callback will be called with null. This can be the case if the Invent script is not available or there have been errors in the initialization of the connector.
The callback is triggered when the connector is available. The callback will receive the connector as parameter or null if no connector can be found within a given time.
Generated using TypeDoc
The Invent interface gives access to the Invent integration. The connector is the heart of the integration and allows to access all features of the Invent integration. The other functions are convenience functions to access common features of the integration.